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