|
|
@ -56,8 +56,6 @@ export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => v |
|
|
|
const tables = computed(() => baseTables.value.get(param.baseId) || []) |
|
|
|
const tables = computed(() => baseTables.value.get(param.baseId) || []) |
|
|
|
const base = computed(() => bases.value.get(param.baseId)) |
|
|
|
const base = computed(() => bases.value.get(param.baseId)) |
|
|
|
|
|
|
|
|
|
|
|
const { loadViews } = useViewsStore() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const openTable = async (table: TableType) => { |
|
|
|
const openTable = async (table: TableType) => { |
|
|
|
if (!table.base_id) return |
|
|
|
if (!table.base_id) return |
|
|
|
|
|
|
|
|
|
|
@ -82,10 +80,6 @@ export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => v |
|
|
|
baseIdOrBaseId = route.value.params.baseId as string |
|
|
|
baseIdOrBaseId = route.value.params.baseId as string |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
await loadViews({ |
|
|
|
|
|
|
|
tableId: table.id, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const views = viewsByTable.value.get(table.id as string) ?? [] |
|
|
|
const views = viewsByTable.value.get(table.id as string) ?? [] |
|
|
|
|
|
|
|
|
|
|
|
if (openedViewsTab.value !== 'view' && views[0].id) { |
|
|
|
if (openedViewsTab.value !== 'view' && views[0].id) { |
|
|
|