修改跨域和菜单栏的添加

This commit is contained in:
NiSen
2023-06-14 19:30:56 +08:00
parent d7404acd6e
commit fc0aa8223a
2 changed files with 49 additions and 7 deletions

View File

@@ -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, //表示是否改变原域名