Преглед изворни кода

提交了一个vuecofig.js 现在改回来

wsx пре 11 месеци
родитељ
комит
f806532c67
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      vue.config.js

+ 3 - 3
vue.config.js

@@ -12,7 +12,7 @@ module.exports = {
   lintOnSave: false,
   productionSourceMap: false,
   configureWebpack: {
-    devtool: 'source-map',
+    // devtool: 'source-map',
     performance: {
       maxAssetSize: 2000000,
       maxEntrypointSize: 2000000
@@ -32,10 +32,10 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        // target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.251:18086',
         // target: 'http://192.168.1.176:18086',
-        target: 'http://192.168.1.158:18086',
+        // target: 'http://192.168.1.158:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {