|
@@ -28,7 +28,7 @@ module.exports = {
|
|
|
*/
|
|
|
// publicPath: '/',
|
|
|
publicPath: process.env.NODE_ENV === 'production'
|
|
|
- ? '/admin-test' // [通过 ip:port/admin 访问,并注意配置route 的base] ??history模式下打包有问题, 只能使用'/' 不能是'./'否则静态资源会报错,要直接点访问只能使用hash模式('./')?? https://cli.vuejs.org/zh/config/#publicpath
|
|
|
+ ? '/admin' // [通过 ip:port/admin 访问,并注意配置route 的base] ??history模式下打包有问题, 只能使用'/' 不能是'./'否则静态资源会报错,要直接点访问只能使用hash模式('./')?? https://cli.vuejs.org/zh/config/#publicpath
|
|
|
: '/',
|
|
|
outputDir: 'dist',
|
|
|
assetsDir: 'static',
|
|
@@ -42,18 +42,18 @@ module.exports = {
|
|
|
errors: true
|
|
|
},
|
|
|
proxy: {
|
|
|
- // '/api': {
|
|
|
- // // prod
|
|
|
- // target: 'http://127.0.0.1:8088',
|
|
|
- // changeOrigin: true,
|
|
|
- // pathRewrite: {}
|
|
|
- // },
|
|
|
'/api': {
|
|
|
- // test (docker)
|
|
|
- target: 'http://127.0.0.1:8089',
|
|
|
+ // prod
|
|
|
+ target: 'http://127.0.0.1:8088',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {}
|
|
|
},
|
|
|
+ // '/api': {
|
|
|
+ // // test (docker)
|
|
|
+ // target: 'http://127.0.0.1:8089',
|
|
|
+ // changeOrigin: true,
|
|
|
+ // pathRewrite: {}
|
|
|
+ // },
|
|
|
'/dfs': {
|
|
|
target: 'http://127.0.0.1:80',
|
|
|
changeOrigin: true,
|