zhuliu 3 tháng trước cách đây
mục cha
commit
810e1df558
1 tập tin đã thay đổi với 36 bổ sung16 xóa
  1. 36 16
      vue.config.js

+ 36 - 16
vue.config.js

@@ -5,6 +5,8 @@ function resolve(dir) {
   return path.join(__dirname, dir)
   return path.join(__dirname, dir)
 }
 }
 module.exports = {
 module.exports = {
+  // outputDir:process.env.NODE_ENV === 'production' ? '小世系统(生产)' : '小世系统(本地)',
+  runtimeCompiler: true ,
   publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
   publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
   lintOnSave: false,
   lintOnSave: false,
   productionSourceMap: false,
   productionSourceMap: false,
@@ -109,36 +111,54 @@ module.exports = {
     },
     },
     proxy: {
     proxy: {
       '/api/xiaoshi': {
       '/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,
         ws: true,
         changeOrigin: true
         changeOrigin: true
       },
       },
       '/fileManager': {
       '/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,
         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': {
       '/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,
         ws: true,
         changeOrigin: true,
         changeOrigin: true,
         pathRewrite:{
         pathRewrite:{
           '/api':''
           '/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,
         ws:true,
-        changeOrigin:true
+        changeOrigin:true,
       },
       },
     }
     }
   }
   }