From b5059b7085644fddaddaea2eb92a3470a7d5733b Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Fri, 22 Sep 2023 15:21:59 +0800
Subject: [PATCH] 退出项目隐藏操作栏

---
 src/components/common/sidebar.vue |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/components/common/sidebar.vue b/src/components/common/sidebar.vue
index bffcb59..fbd379a 100644
--- a/src/components/common/sidebar.vue
+++ b/src/components/common/sidebar.vue
@@ -66,11 +66,16 @@
       const path = typeof item.path === 'string' ? item.path : item.path.path
       return root.$route.path?.indexOf(path) === 0
     }
+    const osdVisible = computed(() => {
+      return store.state.osdVisible
+    })
     const snList = computed(() => store.state.common.snList)
     async function goBack () {
+      const query = toRefs(osdVisible.value)
       snList.value.forEach(async (v: string) => {
         await testUnBind(v)
       })
+      store.commit('SET_OSD_VISIBLE_INFO', { ...query, visible: false })
       root.$router.push('/' + ERouterName.PROJECT_LIST)
     }
     return {

--
Gitblit v1.9.3