Sfoglia il codice sorgente

修改配置文件

seimin 2 anni fa
parent
commit
6731ee54d4
1 ha cambiato i file con 6 aggiunte e 5 eliminazioni
  1. 6 5
      config/index.js

+ 6 - 5
config/index.js

@@ -13,11 +13,12 @@ module.exports = {
13 13
     assetsPublicPath: '/',
14 14
     proxyTable: {
15 15
       '/service': {//自定义名字,代表的是以下target中的内容
16
-        target: host.host+'/service/',//微信
17
-        changeOrigin: false,//是否允许跨域
18
-        pathRewrite: {
19
-          '^/service': ''
20
-        }
16
+        // target: host.host+'/service/',//微信
17
+        target: 'http://weixintest11.ngser.dashitech.com',//微信
18
+        changeOrigin: true,//是否允许跨域
19
+        // pathRewrite: {
20
+        //   '^/service': ''
21
+        // }
21 22
       }
22 23
     },
23 24