|
|
@ -214,17 +214,26 @@ export const useTablesStore = defineStore('tablesStore', () => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const tableUrl = ({ table, completeUrl }: { table: TableType; completeUrl: boolean }) => { |
|
|
|
const tableUrl = ({ table, completeUrl, isSharedBase }: { table: TableType; completeUrl: boolean; isSharedBase?: boolean }) => { |
|
|
|
const base = basesStore.bases.get(table.base_id!) |
|
|
|
let base |
|
|
|
|
|
|
|
if (!isSharedBase) { |
|
|
|
|
|
|
|
base = basesStore.bases.get(table.base_id!) |
|
|
|
if (!base) return |
|
|
|
if (!base) return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const nuxtPageName = 'index-typeOrId-baseId-index-index-viewId-viewTitle' |
|
|
|
const nuxtPageName = 'index-typeOrId-baseId-index-index-viewId-viewTitle' |
|
|
|
|
|
|
|
|
|
|
|
const url = router.resolve({ |
|
|
|
const url = router.resolve({ |
|
|
|
name: nuxtPageName, |
|
|
|
name: nuxtPageName, |
|
|
|
params: { |
|
|
|
params: isSharedBase |
|
|
|
|
|
|
|
? { |
|
|
|
|
|
|
|
typeOrId: route.value.params.typeOrId, |
|
|
|
|
|
|
|
baseId: route.value.params.baseId, |
|
|
|
|
|
|
|
viewId: route.value.params.viewId, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
: { |
|
|
|
typeOrId: workspaceStore.activeWorkspaceId, |
|
|
|
typeOrId: workspaceStore.activeWorkspaceId, |
|
|
|
baseId: base.id, |
|
|
|
baseId: base?.id, |
|
|
|
viewId: table.id, |
|
|
|
viewId: table.id, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|