Przeglądaj źródła

fix(student page): 修复学生页接口请求地址硬编码问题

将硬编码的api参数替换为固定的selectUser2接口路径,修正用户查询接口调用地址
lsc 1 dzień temu
rodzic
commit
c363768c56
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/views/Student/index.vue

+ 1 - 1
src/views/Student/index.vue

@@ -3913,7 +3913,7 @@ const addOp3 = async (userTime: any, loadTime: any, object: any, status: any) =>
 
   try {
     if (!userJson.value || !userJson.value.accountNumber) {
-      const res = await axios.get('https://pbl.cocorobo.cn/api/pbl/' + api, {
+      const res = await axios.get('https://pbl.cocorobo.cn/api/pbl/selectUser2', {
         params: { userid: props.userid }
       })
       if (res == 201 || res.length == 0) {