|
@@ -24,8 +24,8 @@ module.exports = {
|
|
|
// filename: 'index.html',
|
|
|
// }
|
|
|
// },
|
|
|
- //打包时修改该配置 需放开
|
|
|
- //publicPath:'/interlock',
|
|
|
+ //打包时修改该配置 如果发布时,是以应用程序方式发布(类似8082/screen),需要放开
|
|
|
+ // publicPath:'/interlock',
|
|
|
configureWebpack: config => {
|
|
|
//生产环境取消 console.log
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
@@ -103,8 +103,7 @@ module.exports = {
|
|
|
/* '/api': {
|
|
|
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
|
|
ws: false,
|
|
|
- changeOrigin: true,
|
|
|
- pathRewrite: {
|
|
|
+ changeOrigin: true, pathRewrite: {
|
|
|
'/jeecg-boot': '' //默认所有请求都加了jeecg-boot前缀,需要去掉
|
|
|
}
|
|
|
},*/
|
|
@@ -117,9 +116,9 @@ module.exports = {
|
|
|
// },
|
|
|
// 部署修改
|
|
|
[process.env.VUE_APP_API_BASE_URL]: {
|
|
|
+ // target: 'http://192.168.31.110:31520',
|
|
|
target: 'http://127.0.0.1:8520',
|
|
|
- // target: 'http://127.0.0.1:8520',
|
|
|
- changeOrigin: true,
|
|
|
+ angeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_API_BASE_URL]: ''
|
|
|
}
|