修改api转发

This commit is contained in:
wuyx
2022-12-23 11:05:08 +08:00
parent afa3123f17
commit da534ae876

View File

@@ -9,7 +9,7 @@
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
publicPath: "/manage-release",
publicPath: "/manage",
// transpileDependencies: true,
devServer: {
port: 8080,
@@ -22,7 +22,7 @@ module.exports = defineConfig({
pathRewrite: {
"^/manageApi": "",
},
},"/userbasic": {
}, "/userbasic": {
target: process.env.VUE_APP_BOE_API_URL,
changeOrigin: true, //表示是否改变原域名
},