mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 12:17:19 +00:00
feat: use shared composable for useProject and useTabs
Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { MaybeRef } from '@vueuse/core'
|
||||
import { computed, unref, useRoute } from '#imports'
|
||||
import { computed, unref, useRouter } from '#imports'
|
||||
|
||||
export interface CellUrlOptions {
|
||||
behavior?: string
|
||||
@@ -21,7 +21,9 @@ const parseUrlRules = (serialized?: string): ParsedRules[] | undefined => {
|
||||
}
|
||||
|
||||
export function useCellUrlConfig(url?: MaybeRef<string>) {
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
||||
const route = $(router.currentRoute)
|
||||
|
||||
const config = $computed(() => ({
|
||||
behavior: route.query.url_behavior as string | undefined,
|
||||
|
||||
Reference in New Issue
Block a user