Browse Source

修改环境配置

yangbifan 2 years ago
parent
commit
b15d57c980
2 changed files with 10 additions and 2 deletions
  1. 2 2
      src/config/dev.js
  2. 8 0
      vue.config.js

+ 2 - 2
src/config/dev.js

@@ -2,13 +2,13 @@
 let devs = {
     TITLE:'本地环境',
     BASE_URL:"http://43.138.50.94:9600/", //本地环境
-    BASE_API:"http://43.138.50.94:8880",//工作流本地环境
+    BASE_API:"http://127.0.0.1:8080/api",//工作流本地环境
     EXCEL_URL:"http://43.138.50.94:7777" //本地excel路径
 }
 let dev = {
     TITLE:'本地环境',
     BASE_URL:"http://127.0.0.1:8080", //本地环境
-    BASE_API:"http://43.138.50.94:8888",//工作流本地环境
+    BASE_API:"http://127.0.0.1:8080/api",//工作流本地环境
     EXCEL_URL:"http://43.138.50.94:7777" //本地excel路径
 }
 let test = {

+ 8 - 0
vue.config.js

@@ -124,6 +124,14 @@ module.exports = {
                     "^/market": "",
                 },
             },
+            "/api": {
+                target: "http://43.138.50.94:8888",
+                ws: false,
+                changeOrigin: true,
+                pathRewrite: {
+                    "^/api": "",
+                },
+            },
             // 开发环境变化可注释 ⬆️⬆️
             "/": {
                 // target: 'http://192.168.2.145:9600/spfm',