From 82379f6ff9ddc28abb2a0e46bc97090ec049b6e9 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 07 五月 2024 11:55:51 +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