feat: add suggested team
This commit is contained in:
@@ -70,8 +70,8 @@ export const useAuth = () => {
|
||||
const res = await fetchCurrentUser()
|
||||
if (res.ok) {
|
||||
user.value = res.user
|
||||
await refreshUnreadNotifications()
|
||||
const path = currentPath ?? useNuxtApp().$router.currentRoute.value.path
|
||||
await nuxtApp.runWithContext(() => refreshUnreadNotifications())
|
||||
const path = currentPath ?? nuxtApp.$router.currentRoute.value.path
|
||||
|
||||
if (redirectOnSuccess && path.startsWith('/auth')) {
|
||||
await nuxtApp.runWithContext(() => navigateTo('/dashboard'))
|
||||
|
||||
Reference in New Issue
Block a user