|
|
@@ -3,15 +3,15 @@ const { defineConfig } = require('@vue/cli-service')
|
|
|
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
- publicPath: '/gradiate-school/manage/',
|
|
|
+ publicPath: '/',
|
|
|
transpileDependencies: true,
|
|
|
devServer: {
|
|
|
// 配置反向代理
|
|
|
proxy: {
|
|
|
// 当地址中有/api的时候会触发代理机制
|
|
|
- '/gradiate-school/reporting/': {
|
|
|
+ '/reporting/': {
|
|
|
// 要代理的服务器地址 这里不用写 api
|
|
|
- target: 'https://chtech.ncjti.edu.cn/',
|
|
|
+ target: 'https://jiangxih3cpartner.com/',
|
|
|
changeOrigin: true // 是否跨域
|
|
|
}
|
|
|
}
|