Procházet zdrojové kódy

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

将硬编码的api参数替换为固定的selectUser2接口路径,修正用户查询接口调用地址
lsc před 1 dnem
rodič
revize
c363768c56
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {