|
@@ -5,6 +5,8 @@ function resolve(dir) {
|
|
|
return path.join(__dirname, dir)
|
|
|
}
|
|
|
module.exports = {
|
|
|
+ // outputDir:process.env.NODE_ENV === 'production' ? '小世系统(生产)' : '小世系统(本地)',
|
|
|
+ runtimeCompiler: true ,
|
|
|
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
|
|
|
lintOnSave: false,
|
|
|
productionSourceMap: false,
|
|
@@ -109,36 +111,54 @@ module.exports = {
|
|
|
},
|
|
|
proxy: {
|
|
|
'/api/xiaoshi': {
|
|
|
- target: 'http://192.168.1.16:8877',
|
|
|
+ target: 'http://192.168.2.107:8879',
|
|
|
+ // target: 'http://47.116.194.135:8879',
|
|
|
ws: true,
|
|
|
changeOrigin: true
|
|
|
},
|
|
|
'/fileManager': {
|
|
|
- target: 'http://192.168.1.16:8801',
|
|
|
+ target: 'http://192.168.2.24:8803',
|
|
|
+ // target: 'http://192.168.2.105:8803',
|
|
|
+ // target: 'http://47.116.194.135:8803',
|
|
|
ws: true,
|
|
|
- changeOrigin: true
|
|
|
+ changeOrigin: true,
|
|
|
+ pathRewrite:{
|
|
|
+ '/api':''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ '/service-image-url': {
|
|
|
+ target: 'https://pss-system.cponline.cnipa.gov.cn',
|
|
|
+ // target: 'https://www.xsip.cn',
|
|
|
+ ws: true,
|
|
|
+ changeOrigin: true,
|
|
|
+ pathRewrite:{
|
|
|
+ '/api':''
|
|
|
+ }
|
|
|
},
|
|
|
-
|
|
|
- // '/api/v2': {
|
|
|
- // target: 'http://192.168.1.24:8877',
|
|
|
- // ws: true,
|
|
|
- // changeOrigin: true
|
|
|
- // },
|
|
|
'/permission': {
|
|
|
- // target: 'http://192.168.0.56:8880',
|
|
|
- target: 'http://192.168.1.24:8871',
|
|
|
- // target: 'http://139.224.24.90:8871',
|
|
|
+ target: 'http://192.168.2.24:8871',
|
|
|
+ // target: 'http://192.168.2.109:8880',
|
|
|
+ // target: 'http://47.116.194.135:8880',
|
|
|
ws: true,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite:{
|
|
|
'/api':''
|
|
|
}
|
|
|
},
|
|
|
- '/report':{
|
|
|
- target:'http://192.168.1.24:8872',
|
|
|
- // target:'http://139.224.24.90:8872',
|
|
|
+ '/fms':{
|
|
|
+ target:'http://192.168.2.24:8803',
|
|
|
+ // target: 'http://192.168.2.109:8803',
|
|
|
+ // target: 'http://47.116.194.135:8803',
|
|
|
+ ws:true,
|
|
|
+ changeOrigin:true,
|
|
|
+ pathRewrite:{
|
|
|
+ '/api/fms':''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ '/v1':{
|
|
|
+ target:'http://192.168.2.24',
|
|
|
ws:true,
|
|
|
- changeOrigin:true
|
|
|
+ changeOrigin:true,
|
|
|
},
|
|
|
}
|
|
|
}
|