From eae62f5e1c79695a51fc487c6db9f28e2bcbeb9d Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 16 七月 2024 09:08:05 +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