ソースを参照

修改不能打包问题

hanqingsong 1 年間 前
コミット
41ea512462
共有1 個のファイルを変更した2 個の追加28 個の削除を含む
  1. 2 28
      vue.config.js

+ 2 - 28
vue.config.js

@@ -63,40 +63,14 @@ module.exports = {
63 63
       },
64 64
       '/crk': {
65 65
         // ws: true,
66
-        target: 'http://192.168.1.106:8889',
67
-        //  target: 'http://101.36.160.140:21061',
66
+        // target: 'http://172.16.0.37:80/crknmg',
67
+        target: 'http://localhost:82',
68 68
         changOrigin: true,
69 69
         pathRewrite: {
70 70
           '^/crk': ''
71 71
         },
72
-
73 72
       },
74
-      // '/webs': {
75
-      //   target: 'http://139.159.183.224:19999',  //这里后台的地址模拟的;应该填写你们真实的后台接口
76
-      //   // target:'http://172.16.0.02:9601',
77
-
78
-      //   changOrigin: true,  //允许跨域
79
-
80
-      //   pathRewrite: {
81
-      //     /* 重写路径,当我们在浏览器中看到请求的地址为:http://localhost:8080/api/core/getData/userInfo 时
82
-      //       实际上访问的地址是:http://121.121.67.254:8185/core/getData/userInfo,因为重写了 /api
83
-      //      */
84
-      //     '^/webs': ''
85
-      //   }
86
-      // },
87
-
88
-
89
-
90
-
91 73
     },
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100 74
     port: port,
101 75
     open: true,
102 76
     overlay: {