From 0e0a5933033da8247d8577df8739d5f07f5b4fb3 Mon Sep 17 00:00:00 2001 From: "Alisa | Side.one" Date: Sun, 14 May 2023 13:48:43 +0800 Subject: [PATCH] feat: sidebar open default --- src/layouts/components/DefaultLayout.vue | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index b2c32488..00eb56e1 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -28,6 +28,13 @@ blockchain.$subscribe((m, s) => { }); const sidebarShow = ref(false); +const sidebarOpen = ref(true); + +const changeOpen = (index: Number) => { + if (index === 0) { + sidebarOpen.value = !sidebarOpen.value; + } +};