|
|
|
@ -22,21 +22,24 @@ const activeTab = inject(
|
|
|
|
|
// getMeta(route.params.title as string, true).finally(() => (loading.value = false)) |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
watch(() => route.params.title, (tableTitle) => { |
|
|
|
|
watch( |
|
|
|
|
() => route.params.title, |
|
|
|
|
(tableTitle) => { |
|
|
|
|
until(tables) |
|
|
|
|
.toMatch((tables) => tables.length > 0) |
|
|
|
|
.then(() => { |
|
|
|
|
getMeta(tableTitle as string, true).finally(() => (loading.value = false)) |
|
|
|
|
}) |
|
|
|
|
}, {immediate: true}) |
|
|
|
|
|
|
|
|
|
.toMatch((tables) => tables.length > 0) |
|
|
|
|
.then(() => { |
|
|
|
|
getMeta(tableTitle as string, true).finally(() => (loading.value = false)) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
{ immediate: true }, |
|
|
|
|
) |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
|
<div class="w-full h-full"> |
|
|
|
|
<!-- <div v-if="loading" class="flex items-center justify-center h-full w-full">--> |
|
|
|
|
<!-- <a-spin size="large" />--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- <div v-if="loading" class="flex items-center justify-center h-full w-full"> --> |
|
|
|
|
<!-- <a-spin size="large" /> --> |
|
|
|
|
<!-- </div> --> |
|
|
|
|
|
|
|
|
|
<LazyTabsSmartsheet :active-tab="activeTab" /> |
|
|
|
|
</div> |
|
|
|
|