luobang 3 năm trước cách đây
mục cha
commit
a8a3a4cca8
2 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 0 2
      build/utils.js
  2. 3 4
      config/index.js

+ 0 - 2
build/utils.js

@@ -25,8 +25,6 @@ let devModules = ['all']
 //  let devModules = ['index','WMS','sale','TMS','inward','SporadicManage']
 // let devModules = ['index','SporadicManage','TMS','statisticalReport','RMS'];
 // let devModules = ['index','RMS'];
-
-
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
 }

+ 3 - 4
config/index.js

@@ -64,8 +64,8 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    // target: "http://192.168.1.107:8019",
-    target: "http://172.16.33.166:8080",
+    target: "http://localhost:8080",
+    // target: "http://172.16.33.166:8080",
     // target: "http://192.168.1.114:8019",
     ws: true,
     pathRewrite: {
@@ -103,11 +103,10 @@ module.exports = {
       assetsSubDirectory: 'static',
       assetsPublicPath: '/',
       proxyTable: proxyTable,
-
     // Various Dev Server settings
     host: 'localhost', // can be overwritten by process.env.HOST
     port: 8802, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
-    autoOpenBrowser: false,
+    autoOpenBrowser: true,
     errorOverlay: true,
     notifyOnErrors: true,
     poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-