From ce1f77d4a12083a6f94324d764b46e085e90d36e Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期一, 13 五月 2024 12:02:12 +0800 Subject: [PATCH] 视频分类初始话 --- 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