refactor: 界面重构美化

This commit is contained in:
Ray.Hao
2026-05-11 11:54:22 +08:00
parent 66615279eb
commit fe0775fbdb
31 changed files with 2836 additions and 2172 deletions

View File

@@ -15,6 +15,7 @@ export const useAppStore = defineStore("app", () => {
withoutAnimation: false,
});
const activeTopMenuPath = useStorage(STORAGE_KEYS.ACTIVE_TOP_MENU_PATH, "");
const contentFullscreen = ref(false);
const locale = computed(() => (language?.value === "en" ? en : zhCn));
@@ -49,6 +50,10 @@ export const useAppStore = defineStore("app", () => {
activeTopMenuPath.value = val;
}
function toggleContentFullscreen() {
contentFullscreen.value = !contentFullscreen.value;
}
return {
device,
sidebar,
@@ -56,12 +61,14 @@ export const useAppStore = defineStore("app", () => {
locale,
size,
activeTopMenu,
contentFullscreen,
toggleDevice,
changeSize,
changeLanguage,
toggleSidebar,
closeSideBar,
openSideBar,
toggleContentFullscreen,
activeTopMenuPath,
};
});