修改配置打包

This commit is contained in:
熊丽君
2022-03-15 16:49:23 +08:00
parent 8fb72b113b
commit 9b2a7d915c
2 changed files with 7 additions and 3 deletions

View File

@ -5,4 +5,5 @@ VUE_APP_TITLE = 管理系统
ENV = 'production' ENV = 'production'
# 管理系统/生产环境 # 管理系统/生产环境
VUE_APP_BASE_API = '' # VUE_APP_BASE_API = 'http://101.34.131.16:8000'
VUE_APP_BASE_API = '/api'

View File

@ -35,8 +35,11 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.0.142:8000`, // target: `http://101.34.131.16:8000`,
target: `http://hf.zky.cn:8000`, target: `http://192.168.0.149:8000`,
// target: `http://192.168.0.135:8000`,
// target: `http://zky.server.ipeace.org.cn`,
// target: `http://hf.zky.cn:8000`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '', ['^' + process.env.VUE_APP_BASE_API]: '',