Procházet zdrojové kódy

修改服务器地址

mifei před 1 měsícem
rodič
revize
f57f6f7338
2 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 2 1
      public/config.js
  2. 6 0
      src/request/api.js

+ 2 - 1
public/config.js

@@ -1,6 +1,7 @@
1 1
 window.g = {
2 2
     // 获取数据请求地址
3 3
     // BASE_API: "https://test.lqkj.top//cmioc3-server",
4
-    BASE_API: "http://192.168.4.219:12397/ioc-server",
4
+    // BASE_API: "http://192.168.4.219:12397/ioc-server",
5
+    BASE_API: "https://782y5867q3.vicp.fun/ioc-server/",
5 6
     UE_IP: "http://192.168.4.159"
6 7
 };

+ 6 - 0
src/request/api.js

@@ -20,3 +20,9 @@ export const getvideo = (data) => service.post("/camera/getUrl",data)
20 20
 export const getClassDetail = (deviceCode) => service.get(`/wisdomClass/deviceDetail/${deviceCode}`)
21 21
 
22 22
 export const getVideoUrl = (data) => service.post(`/camera/getUrl`, data)
23
+
24
+//教室下拉选择数据
25
+ export const classSelections = () => service.get("/wisdomClass/selections")
26
+
27
+//教室下搜索
28
+ export const queryClassroom = (data) => service.post("/wisdomClass/queryClassroom",data)