Эх сурвалжийг харах

添加参数配置功能后台代码

lideyin 6 жил өмнө
parent
commit
722c2e7885
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      vue.config.js

+ 3 - 2
vue.config.js

@@ -1,6 +1,7 @@
 const proxy = {
   "/api/ecs_core": {
-    target: process.env.VUE_APP_CORE_HOST_URL || "http://192.168.10.39:8000",
+    // target: process.env.VUE_APP_CORE_HOST_URL || "http://192.168.10.39:8000",
+    target: "http://localhost:8000",
     changeOrigin: true
   },
   "/api/ecs_exam_work": {
@@ -19,7 +20,7 @@ const proxy = {
     changeOrigin: true
   },
   "/api/ecs_oe_admin": {
-    target: process.env.VUE_APP_OE_HOST_URL || "http://192.168.10.39:8013",
+    target: "http://localhost:8013",
     changeOrigin: true
   },
   "/api/ecs_oe_student": {