refactor: 删除无用外部样式文件

This commit is contained in:
hxr
2024-02-14 16:44:35 +08:00
parent 6b5c3a7f2a
commit 22e2ba2c2f
7 changed files with 73 additions and 211 deletions

View File

@@ -32,7 +32,6 @@ export const useAppStore = defineStore("app", () => {
// actions
function toggleSidebar() {
sidebar.opened = !sidebar.opened;
sidebar.withoutAnimation = false;
if (sidebar.opened) {
sidebarStatus.value = "opened";
} else {
@@ -40,15 +39,13 @@ export const useAppStore = defineStore("app", () => {
}
}
function closeSideBar(withoutAnimation: boolean) {
function closeSideBar() {
sidebar.opened = false;
sidebar.withoutAnimation = withoutAnimation;
sidebarStatus.value = "closed";
}
function openSideBar(withoutAnimation: boolean) {
function openSideBar() {
sidebar.opened = true;
sidebar.withoutAnimation = withoutAnimation;
sidebarStatus.value = "opened";
}