diff --git a/src/components/Dictionary/index.vue b/src/components/Dictionary/index.vue
index 855ad4e1..b2e01d0f 100644
--- a/src/components/Dictionary/index.vue
+++ b/src/components/Dictionary/index.vue
@@ -1,20 +1,18 @@
-
-
-
-
-
+
+
+
-
-
-
diff --git a/src/layout/components/NavBar/index.vue b/src/layout/components/NavBar/index.vue
index 1f6b70e8..e935d450 100644
--- a/src/layout/components/NavBar/index.vue
+++ b/src/layout/components/NavBar/index.vue
@@ -7,7 +7,7 @@ const appStore = useAppStore();
* 左侧菜单栏显示/隐藏
*/
function toggleSideBar() {
- appStore.toggleSidebar(true);
+ appStore.toggleSidebar();
}
diff --git a/src/layout/index.vue b/src/layout/index.vue
index b943089d..c96ef8b7 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -72,7 +72,7 @@ function handleOutsideClick() {
}
function toggleSideBar() {
- appStore.toggleSidebar(true);
+ appStore.toggleSidebar();
}
diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts
index b538d0cf..e2e82356 100644
--- a/src/store/modules/app.ts
+++ b/src/store/modules/app.ts
@@ -32,9 +32,9 @@ export const useAppStore = defineStore("app", () => {
});
// actions
- function toggleSidebar(withoutAnimation: boolean) {
+ function toggleSidebar() {
sidebar.opened = !sidebar.opened;
- sidebar.withoutAnimation = withoutAnimation;
+ sidebar.withoutAnimation = false;
if (sidebar.opened) {
sidebarStatus.value = "opened";
} else {
diff --git a/src/views/demo/dict.vue b/src/views/demo/dict.vue
index bcd594da..fcb6e060 100644
--- a/src/views/demo/dict.vue
+++ b/src/views/demo/dict.vue
@@ -1,7 +1,7 @@
@@ -22,7 +22,7 @@ const nmberValue = ref(1); // 性别(值为Number)
-
+
值为Number: const value = ref(1);