From cedb5f069b1641747ae563b2e54c58f18d37d971 Mon Sep 17 00:00:00 2001 From: Aresn Date: Tue, 21 May 2024 16:21:46 +0800 Subject: [PATCH] add --- components/i/Nav.vue | 19 +++++++++++++++---- stores/user.js | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/components/i/Nav.vue b/components/i/Nav.vue index 8971d13..97c08f2 100644 --- a/components/i/Nav.vue +++ b/components/i/Nav.vue @@ -24,6 +24,7 @@ variant="ghost" size="md" label="搜索记录" + @click="handleOpenSearchHistory" /> { const handleCloseSign = () => { isOpenSign.value = false } +const handleOpenSearchHistory = () => { + if (!$isSignIn) handleOpenSign() + else { + + } +} diff --git a/stores/user.js b/stores/user.js index 0eb1ee8..c989a47 100644 --- a/stores/user.js +++ b/stores/user.js @@ -7,7 +7,7 @@ export const useUserStore = defineStore('user', () => { pro: 1 }) - const $isSignIn = ref(false) + const $isSignIn = ref(true) return { $info, $isSignIn } }) -- GitLab