diff --git a/components/i/Nav.vue b/components/i/Nav.vue index 8971d13d728aca788de346854943f59afb02295c..97c08f2baec12006feac7b42a7f2f6fc2be37987 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 0eb1ee8a6013c809856641f10542b0778b6dda4a..c989a47b0814a52c8e592d09db09e4ece9aea2e1 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 } })