fix: sign out when only one user

zio/stable
三咲智子 2022-11-29 13:43:06 +08:00
parent 22b4c4aaa5
commit f1f7462ec0
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ export async function signout() {
clearUserDrafts() clearUserDrafts()
clearUserFeatureFlags() clearUserFeatureFlags()
currentUserId.value = ''
// Remove the current user from the users // Remove the current user from the users
users.value.splice(index, 1) users.value.splice(index, 1)
} }