mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
fix:修改本地proxy获取不到windows.location对象报错
This commit is contained in:
@@ -15,13 +15,13 @@ module.exports = defineConfig({
|
||||
port: 8080,
|
||||
proxy: {
|
||||
"/manageApi": {
|
||||
target: window.location.protocol + process.env.VUE_APP_PROXY_URL,
|
||||
target: 'http:' + process.env.VUE_APP_PROXY_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
pathRewrite: {
|
||||
"^/manageApi": "",
|
||||
},
|
||||
}, "/userbasic": {
|
||||
target: window.location.protocol + process.env.VUE_APP_BOE_API_URL,
|
||||
target: 'http:' + process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user