chore(env): 相对路径替换绝对路径
This commit is contained in:
parent
adde07d79d
commit
9968bcf674
|
@ -23,5 +23,5 @@ ENV = 'development'
|
||||||
#VUE_APP_BASE_API = 'http://192.168.31.159:8080'
|
#VUE_APP_BASE_API = 'http://192.168.31.159:8080'
|
||||||
|
|
||||||
#测试
|
#测试
|
||||||
VUE_APP_BASE_API = 'http://t-mana.beida413.com/prod-api'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
# VUE_APP_BASE_API = 'http://127.0.0.1:8080'
|
# VUE_APP_BASE_API = 'http://127.0.0.1:8080'
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = 'http://t-mana.beida413.com/prod-api'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
|
|
||||||
# 打包:
|
# 打包:
|
||||||
# npm run build:prod
|
# npm run build:prod
|
||||||
|
|
|
@ -42,7 +42,16 @@ module.exports = {
|
||||||
warnings: false,
|
warnings: false,
|
||||||
errors: true
|
errors: true
|
||||||
},
|
},
|
||||||
before: require('./mock/mock-server.js')
|
proxy: {
|
||||||
|
'/prod-api': {
|
||||||
|
target: 'http://t-mana.beida413.com',
|
||||||
|
changeOrigin: true
|
||||||
|
// pathRewrite: {
|
||||||
|
// '^/prod-api': ''
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// before: require('./mock/mock-server.js')
|
||||||
},
|
},
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
// provide the app's title in webpack's name field, so that
|
// provide the app's title in webpack's name field, so that
|
||||||
|
|
Loading…
Reference in New Issue