kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix(front): handle simplified Vue syntax for useRouteQuery transform
rodzic
c0fb204ba2
commit
70b2c02a80
|
|
@ -47,7 +47,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|||
|
||||
const page = usePage()
|
||||
|
||||
const tags = useRouteQuery<string[]>('tag', [], { transform: (param: string | string[] | null) => (param === null ? [] : Array.isArray(param) ? param : [param]).filter(p => p.trim() !== '') })
|
||||
const tags = useRouteQuery<string[]>('tag', [], { transform: (param: string[]) => param.filter(p => p.trim() !== '') })
|
||||
|
||||
const q = useRouteQuery('query', '')
|
||||
const query = ref(q.value ?? '')
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue