Pre Merge pull request !76 from dhb52/dev

This commit is contained in:
dhb52 2024-01-05 10:39:50 +00:00 committed by Gitee
commit 52b4e7e93d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -31,7 +31,6 @@ import { RouteRecordRaw } from 'vue-router';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const route = useRoute();
const appStore = useAppStore();
const settingsStore = useSettingsStore();
const permissionStore = usePermissionStore();
@ -42,7 +41,7 @@ const theme = computed(() => settingsStore.theme);
const isCollapse = computed(() => !appStore.sidebar.opened);
const activeMenu = computed(() => {
const { meta, path } = route;
const { meta, path } = useRoute();
// if set path, the sidebar will highlight the path you set
if (meta.activeMenu) {
return meta.activeMenu;