回滚配置

This commit is contained in:
quhongwei
2023-02-16 22:11:47 +08:00
parent 36b6e820c3
commit 650b374513
2 changed files with 4 additions and 4 deletions

2
.env
View File

@@ -9,7 +9,7 @@ VUE_APP_PROXY_URL=//43.143.139.204/manageApi
# 登录url
VUE_APP_LOGIN_URL=//u-pre.boe.com/web
# boe域名
VUE_APP_BOE_API_URL=https://u-pre.boe.com
VUE_APP_BOE_API_URL=//u-pre.boe.com
#打包路径
VUE_APP_OUTPUT_DIR=./dist

View File

@@ -12,16 +12,16 @@ module.exports = defineConfig({
publicPath: process.env.VUE_APP_BASE,
outputDir: process.env.VUE_APP_OUTPUT_DIR,
devServer: {
port: 8080,
port: 8070,
proxy: {
"/manageApi": {
target: "http://localhost:30001",
target: 'http:' + process.env.VUE_APP_PROXY_URL,
changeOrigin: true, //表示是否改变原域名
pathRewrite: {
"^/manageApi": "",
},
}, "/userbasic": {
target: process.env.VUE_APP_BOE_API_URL,
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
changeOrigin: true, //表示是否改变原域名
},
"/systemapi": {