diff --git a/components/EntityShow.vue b/components/EntityShow.vue index 1c8e2b2..9643775 100644 --- a/components/EntityShow.vue +++ b/components/EntityShow.vue @@ -38,12 +38,13 @@ defineShortcuts({ const emit = defineEmits(["updateNeeded"]) const router = useRouter() +const route = useRoute() const dataStore = useDataStore() const modal = useModal() const dataType = dataStore.dataTypes[type] -const openTab = ref(0) +const openTab = ref(route.query.tabIndex || 0) @@ -88,6 +89,10 @@ const getAvailableQueryStringData = (keys) => { } +const onTabChange = (index) => { + router.push(`${router.currentRoute.value.path}?tabIndex=${index}`) +} +