From b2c538e0600a4e23c66aa5564f1eb48c729300c8 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期五, 24 五月 2024 13:47:33 +0800 Subject: [PATCH] fix:统计随机试卷 --- src/layout/components/Sidebar/index.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 104421d..36dfebd 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -27,11 +27,6 @@ export default { components: { SidebarItem, Logo }, - data () { - return { - routerList: sessionStorage.getItem('deptAdmin') === '1' ? deptAdminRoutes : this.routes - } - }, computed: { ...mapGetters([ 'sidebar', @@ -51,6 +46,13 @@ }, isCollapse () { return !this.sidebar.opened + }, + routerList () { + return sessionStorage.getItem('deptAdmin') === '1' ? deptAdminRoutes : this.routes + } + }, + data () { + return { } } } -- Gitblit v1.8.0