浏览代码

适配后台开发的本地服务器调试

Michael Wang 5 年之前
父节点
当前提交
503545e1ec
共有 3 个文件被更改,包括 14 次插入3 次删除
  1. 2 1
      .env.development
  2. 3 1
      .env.staging
  3. 9 1
      vue.config.js

+ 2 - 1
.env.development

@@ -3,4 +3,5 @@ VUE_APP_TK_SERVER_API_URL=http://192.168.10.38:8008
 VUE_APP_WK_SERVER_SOCKET=wss://wuhan-dev.qmth.com.cn:8878/api/ws/faceBiopsy
 VUE_APP_WK_SERVER_SOCKET=wss://wuhan-dev.qmth.com.cn:8878/api/ws/faceBiopsy
 VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://wuhan-dev.qmth.com.cn:8878/api/ws/fileAnswer
 VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://wuhan-dev.qmth.com.cn:8878/api/ws/fileAnswer
 VUE_APP_CORE_HOST_URL=https://192.168.10.38:8878
 VUE_APP_CORE_HOST_URL=https://192.168.10.38:8878
-VUE_APP_OE_HOST_URL=https://192.168.10.38:8878
+VUE_APP_OE_ADMIN_HOST_URL=https://192.168.10.38:8878
+VUE_APP_OE_STUDENT_HOST_URL=https://192.168.10.38:887

+ 3 - 1
.env.staging

@@ -2,4 +2,6 @@ VUE_APP_TK_SERVER_HTML_URL=http://192.168.10.39:5220
 VUE_APP_TK_SERVER_API_URL=http://192.168.10.39:8008
 VUE_APP_TK_SERVER_API_URL=http://192.168.10.39:8008
 VUE_APP_WK_SERVER_SOCKET=wss://wuhan-test.qmth.com.cn:8878/api/ws/faceBiopsy
 VUE_APP_WK_SERVER_SOCKET=wss://wuhan-test.qmth.com.cn:8878/api/ws/faceBiopsy
 VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://wuhan-test.qmth.com.cn:8878/api/ws/fileAnswer
 VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://wuhan-test.qmth.com.cn:8878/api/ws/fileAnswer
-VUE_APP_OE_HOST_URL=https://192.168.10.39:8878
+VUE_APP_CORE_HOST_URL=https://192.168.10.38:8878
+VUE_APP_OE_ADMIN_HOST_URL=https://192.168.10.38:8878
+VUE_APP_OE_STUDENT_HOST_URL=https://192.168.10.38:88

+ 9 - 1
vue.config.js

@@ -1,6 +1,14 @@
 let proxy = {
 let proxy = {
+  "/api/ecs_oe_admin": {
+    target: process.env.VUE_APP_OE_ADMIN_HOST_URL,
+    changeOrigin: true,
+  },
+  "/api/ecs_oe_student": {
+    target: process.env.VUE_APP_OE_STUDENT_HOST_URL,
+    changeOrigin: true,
+  },
   "/api": {
   "/api": {
-    target: process.env.VUE_APP_OE_HOST_URL,
+    target: process.env.VUE_APP_CORE_HOST_URL,
     changeOrigin: true,
     changeOrigin: true,
   },
   },
 };
 };