mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
修改跨域和菜单栏的添加
This commit is contained in:
@@ -14,13 +14,16 @@ module.exports = defineConfig({
|
||||
outputDir: process.env.VUE_APP_OUTPUT_DIR,
|
||||
devServer: {
|
||||
port: 8070,
|
||||
client: {
|
||||
overlay:false
|
||||
},
|
||||
proxy: {
|
||||
"/manageApi": {
|
||||
target: 'http:' + process.env.VUE_APP_PROXY_URL,
|
||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
pathRewrite: {
|
||||
"^/manageApi": "",
|
||||
},
|
||||
// pathRewrite: {
|
||||
// "^/manageApi": "/manageApi",
|
||||
// },
|
||||
}, "/userbasic": {
|
||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
|
||||
Reference in New Issue
Block a user