|
@@ -1,6 +1,6 @@
|
|
|
const path = require('path');
|
|
|
module.exports = {
|
|
|
- publicPath: '/',
|
|
|
+ publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
|
|
|
configureWebpack: config => {
|
|
|
Object.assign(config, {
|
|
|
// 开发生产共同配置
|
|
@@ -64,7 +64,7 @@ module.exports = {
|
|
|
// pathRewrite: { '^/api/affairs': '/api' },
|
|
|
},
|
|
|
'/api': {
|
|
|
- target: 'http://127.0.0.1:9004',
|
|
|
+ target: 'http://10.16.10.72:9004',
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
// pathRewrite: { '^/api/affairs': '/api' },
|