From 5d44f9e23124f05b0906efd754ba7f8fac1f7cdd Mon Sep 17 00:00:00 2001 From: Ai3_刘小龙 <wisty0317@163.com> Date: 星期三, 20 十二月 2023 14:26:49 +0800 Subject: [PATCH] update src/views/system/dept/index.vue. append-to-body --- src/layout/components/Sidebar/index.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index a8f47e2..a905c70 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -13,7 +13,7 @@ :collapse-transition="false" mode="vertical" > - <sidebar-item v-for="(route, index) in sidebarRouters" :key="route.path + index" :item="route" :base-path="route.path" /> + <sidebar-item v-for="(r, index) in sidebarRouters" :key="r.path + index" :item="r" :base-path="r.path" /> </el-menu> </transition> </el-scrollbar> @@ -28,7 +28,8 @@ import useSettingsStore from '@/store/modules/settings'; import usePermissionStore from '@/store/modules/permission'; import { RouteRecordRaw } from 'vue-router'; -const { proxy } = getCurrentInstance() as ComponentInternalInstance; + +const { proxy } = getCurrentInstance(); const route = useRoute(); const appStore = useAppStore(); -- Gitblit v1.9.3