瀏覽代碼

恢复原配置文件

lideyin 6 年之前
父節點
當前提交
d8a8318f0b
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      vue.config.js

+ 2 - 3
vue.config.js

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