瀏覽代碼

修改管理员身份不显示问题

zengyicheng 2 年之前
父節點
當前提交
f9cc9848b8
共有 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
             this.ruleForm.org = res.data[0][0].org
               ? res.data[0][0].org.split(",")[0]
               ? 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]);
             console.log(res.data[0][0]);
           }
           }
         })
         })