fix(TopBar): prevent the login button showing up after logging in

This commit is contained in:
hakadao
2024-06-07 01:10:07 +08:00
parent 0ff3a4cac7
commit 6694377019

View File

@@ -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>