Browse Source

fix: preserve tabs

pull/9585/head
DarkPhoenix2704 2 months ago
parent
commit
25c13fdd32
  1. 10
      packages/nc-gui/components/feed/View.vue

10
packages/nc-gui/components/feed/View.vue

@ -46,9 +46,19 @@ const tabs: Array<{
}, },
] ]
const router = useRouter()
const updateTab = (key: string) => { const updateTab = (key: string) => {
$e(`c:nocodb:feed, tab:${key}`) $e(`c:nocodb:feed, tab:${key}`)
router.push({ query: { tab: key } })
} }
onMounted(() => {
const tab = router.currentRoute.value.query.tab as string
if (tab) {
activeTab.value = tab
}
})
</script> </script>
<template> <template>

Loading…
Cancel
Save