From 02ec03773f3da61f5251057a845197ae6a6fecbe Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 6 Sep 2023 23:34:51 +0800 Subject: [PATCH] fix(nc-gui): add await to navigateTo --- packages/nc-gui/components/account/ResetPassword.vue | 2 +- packages/nc-gui/components/general/MiniSidebar.vue | 2 +- packages/nc-gui/layouts/base.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/account/ResetPassword.vue b/packages/nc-gui/components/account/ResetPassword.vue index a6479b570c..529c52cb55 100644 --- a/packages/nc-gui/components/account/ResetPassword.vue +++ b/packages/nc-gui/components/account/ResetPassword.vue @@ -56,7 +56,7 @@ const passwordChange = async () => { await signOut() - navigateTo('/signin') + await navigateTo('/signin') } const resetError = () => { diff --git a/packages/nc-gui/components/general/MiniSidebar.vue b/packages/nc-gui/components/general/MiniSidebar.vue index 3555d24fab..15876e206b 100644 --- a/packages/nc-gui/components/general/MiniSidebar.vue +++ b/packages/nc-gui/components/general/MiniSidebar.vue @@ -13,7 +13,7 @@ const email = computed(() => user.value?.email ?? '---') const logout = async () => { await signOut(false) - navigateTo('/signin') + await navigateTo('/signin') } diff --git a/packages/nc-gui/layouts/base.vue b/packages/nc-gui/layouts/base.vue index 8ee7a073a7..0fee783296 100644 --- a/packages/nc-gui/layouts/base.vue +++ b/packages/nc-gui/layouts/base.vue @@ -15,7 +15,7 @@ const sidebar = ref() const logout = async () => { await signOut(false) - navigateTo('/signin') + await navigateTo('/signin') } const { hooks } = useNuxtApp()