husq
2023-09-22 b5059b7085644fddaddaea2eb92a3470a7d5733b
退出项目隐藏操作栏
1 files modified
5 ■■■■■ changed files
src/components/common/sidebar.vue 5 ●●●●● patch | view | raw | blame | history
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 {