1906 FIX search form autocomplete multi terms

This commit is contained in:
2022-08-15 16:57:57 +02:00
parent 1993f80d8d
commit db6a82f7f7
9 changed files with 29 additions and 19 deletions

View File

@ -104,15 +104,15 @@ export default {
// actions
actions: {
newSearch ({ dispatch, commit, state }) {
console.log('Search newSearch')
console.log('Search newSearch, state.keys', state.keys)
commit('resetUuids')
commit('resetItems')
commit('resetCount')
commit('resetNoresults')
commit('resetOffset')
commit('resetInfos')
if (state.keys || state.terms) {
this.commit('Common/setPagetitle', state.keys)
if (state.keys || state.terms.length) {
this.commit('Common/setPagetitle', state.keys.join(', '))
} else {
this.commit('Common/setPagetitle', 'Base')
}