From f0f200abf841d5d7fe5e2921e6ded8f0147e9c92 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期三, 10 七月 2024 18:02:07 +0800 Subject: [PATCH] feat 用户列表增加部门条件 随机试卷列表增加部门,时间,科目条件 补考直接展示学生 试卷标题默认展示一个 --- src/App.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 29f4cab..588a76a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,8 +27,9 @@ ...mapState('enumItem',{Islogin:state => state.user.levelEnum}) }, mounted () { - - console.log(this.Islogin) + if (! sessionStorage.getItem('deptAdmin')) { + this.$router.push({ path: '/' }) + } this.seachPageDepartMentList() }, methods:{ @@ -37,7 +38,7 @@ await departmentApi.pageList(this.queryParam).then(res => { console.log(res) if (res.code == 1) { - that.depart = res.response.list + that.depart = res.response console.log(that.depart) this.depart.map(item=>{ item.key = item.id -- Gitblit v1.8.0