mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix(TopBar): prevent the login button showing up after logging in
This commit is contained in:
@@ -75,7 +75,9 @@ const popupVisible = reactive({
|
||||
more: false,
|
||||
})
|
||||
const api = useApiClient()
|
||||
const isLogin = ref<boolean>(false)
|
||||
// initially, assume the user is logged in cuz data retrieval is slow, which may show the login
|
||||
// button even after login. if the user is not logged in, the login button will show up later
|
||||
const isLogin = ref<boolean>(true)
|
||||
const unReadMessage = reactive<UnReadMessage | NonNullable<unknown>>(
|
||||
{},
|
||||
) as UnwrapNestedRefs<UnReadMessage>
|
||||
|
||||
Reference in New Issue
Block a user