fix: fix a series of known problems,fixed #54

This commit is contained in:
vince
2024-07-18 21:59:18 +08:00
parent 01e95e029f
commit 276ef2ebc3
36 changed files with 314 additions and 293 deletions

View File

@@ -61,7 +61,7 @@ const defaultPreferences: Preferences = {
},
sidebar: {
collapsed: false,
collapsedShowTitle: true,
collapsedShowTitle: false,
enable: true,
expandOnHover: true,
extraCollapse: true,

View File

@@ -84,6 +84,10 @@ function usePreferences() {
return isMixedNav.value || isSideMixedNav.value || isSideNav.value;
});
const sidebarCollapsed = computed(() => {
return preferences.sidebar.collapsed;
});
/**
* @zh_CN 是否开启keep-alive
* 在tabs可见以及开启keep-alive的情况下才开启
@@ -172,6 +176,7 @@ function usePreferences() {
isSideNav,
keepAlive,
layout,
sidebarCollapsed,
theme,
};
}