Преглед на файлове

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/pbl-teacher-table

lsc преди 2 години
родител
ревизия
59d116ac22
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/components/pages/data.vue

+ 1 - 1
src/components/pages/data.vue

@@ -349,7 +349,7 @@ export default {
             this.ruleForm.org = res.data[0][0].org
               ? res.data[0][0].org.split(",")[0]
               : "";
-            this.ruleForm.type = res.data[0][0].type == 1 ? "老师" : "学生";
+            this.ruleForm.type = res.data[0][0].type == 1 ? "老师" : res.data[0][0].type == 2 ? "学生" : "管理员";
             console.log(res.data[0][0]);
           }
         })