Browse Source

fix(nc-gui): add await to navigateTo

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
6d90ef0fd2
  1. 2
      packages/nc-gui/components/general/MiniSidebar.vue
  2. 2
      packages/nc-gui/layouts/base.vue
  3. 2
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue

2
packages/nc-gui/components/general/MiniSidebar.vue

@ -13,7 +13,7 @@ const email = computed(() => user.value?.email ?? '---')
const logout = async () => { const logout = async () => {
await signOut() await signOut()
navigateTo('/signin') await navigateTo('/signin')
} }
</script> </script>

2
packages/nc-gui/layouts/base.vue

@ -15,7 +15,7 @@ const sidebar = ref<HTMLDivElement>()
const logout = async () => { const logout = async () => {
await signOut() await signOut()
navigateTo('/signin') await navigateTo('/signin')
} }
const { hooks } = useNuxtApp() const { hooks } = useNuxtApp()

2
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -79,7 +79,7 @@ const email = computed(() => user.value?.email ?? '---')
const logout = async () => { const logout = async () => {
await signOut() await signOut()
navigateTo('/signin') await navigateTo('/signin')
} }
function toggleDialog(value?: boolean, key?: string, dsState?: string) { function toggleDialog(value?: boolean, key?: string, dsState?: string) {

Loading…
Cancel
Save