From 3062c46b496236ce1f89ece74e4626c15c66bfe5 Mon Sep 17 00:00:00 2001 From: dap <dap@qq.com> Date: 星期四, 16 五月 2024 08:18:54 +0800 Subject: [PATCH] fix: 流程定义xml预览问题 & 重构代码 --- src/layout/components/Sidebar/index.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index a905c70..a4f20d0 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -29,13 +29,13 @@ import usePermissionStore from '@/store/modules/permission'; import { RouteRecordRaw } from 'vue-router'; -const { proxy } = getCurrentInstance(); +const { proxy } = getCurrentInstance() as ComponentInternalInstance; const route = useRoute(); const appStore = useAppStore(); const settingsStore = useSettingsStore(); const permissionStore = usePermissionStore(); -const sidebarRouters = computed<RouteRecordRaw[]>(() => permissionStore.sidebarRouters); +const sidebarRouters = computed<RouteRecordRaw[]>(() => permissionStore.getSidebarRoutes()); const showLogo = computed(() => settingsStore.sidebarLogo); const sideTheme = computed(() => settingsStore.sideTheme); const theme = computed(() => settingsStore.theme); -- Gitblit v1.9.3