From 70a3348954bc302b0d7840277ae4cc9f09cedec8 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 22 十二月 2023 13:21:04 +0800 Subject: [PATCH] 🧨发布 vue 版本 5.1.2 与 cloud 版本 2.1.2 --- 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