refactor(front): populate tags dropdown with existing tags on search pages and let the user type custom ones
This commit is contained in:
parent
6eabf140d9
commit
3a0d2b6ad7
|
@ -49,8 +49,8 @@ const page = usePage()
|
|||
const tags = useRouteQuery<string[]>('tag', [])
|
||||
|
||||
const tagList = computed(() => ({
|
||||
current: tags.value,
|
||||
others: []
|
||||
others: tags.value,
|
||||
custom: []
|
||||
}))
|
||||
|
||||
const q = useRouteQuery('query', '')
|
||||
|
|
|
@ -48,8 +48,8 @@ const page = usePage()
|
|||
const tags = useRouteQuery<string[]>('tag', [])
|
||||
|
||||
const tagList = computed(() => ({
|
||||
current: tags.value,
|
||||
others: []
|
||||
others: tags.value,
|
||||
custom: []
|
||||
}))
|
||||
|
||||
const q = useRouteQuery('query', '')
|
||||
|
|
|
@ -50,8 +50,8 @@ const page = usePage()
|
|||
const tags = useRouteQuery<string[]>('tag', [])
|
||||
|
||||
const tagList = computed(() => ({
|
||||
current: tags.value,
|
||||
others: []
|
||||
others: tags.value,
|
||||
custom: []
|
||||
}))
|
||||
|
||||
const q = useRouteQuery('query', '')
|
||||
|
|
Loading…
Reference in New Issue