Browse Source

fix(gui-v2): update default active index

pull/3153/head
Wing-Kam Wong 2 years ago
parent
commit
53e9d0545c
  1. 4
      packages/nc-gui-v2/composables/useTabs.ts

4
packages/nc-gui-v2/composables/useTabs.ts

@ -53,8 +53,8 @@ export function useTabs() {
} else if ((route.name as string)?.startsWith('nc-projectId-index-index-auth')) { } else if ((route.name as string)?.startsWith('nc-projectId-index-index-auth')) {
return tabs.value.findIndex((t) => t.type === 'auth') return tabs.value.findIndex((t) => t.type === 'auth')
} }
// by default, it's showing Team & Auth
return -1 return 0
}, },
set(index: number) { set(index: number) {
if (index === -1) { if (index === -1) {

Loading…
Cancel
Save