-
+
@@ -18,16 +16,25 @@ import { useAppStore } from "@/store";
const appStore = useAppStore();
+// 侧边栏是否打开
+const isSidebarOpened = computed(() => appStore.sidebar.opened);
+
+// 展开/收缩菜单
function toggleSideBar() {
appStore.toggleSidebar();
}
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 67a3df09..cb3d90a4 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -1,25 +1,28 @@
-
-
-
+
+
+
-
+
-
+
+
-
+
-
+
+
+