added default base page

This commit is contained in:
2021-01-19 16:30:14 +01:00
parent a0d1099eae
commit f4174fac16
10 changed files with 102 additions and 68 deletions

View File

@@ -70,6 +70,12 @@ export default {
this.$store.commit('Search/setTerm', params.get('term'))
this.pagetitle = params.get('keys')
this.newSearch()
}else{
// load default base page
this.$store.commit('Search/setKeys', '')
this.$store.commit('Search/setTerm', '')
this.pagetitle = 'Base'
this.newSearch()
}
},
beforeRouteUpdate (to, from, next) {

View File

@@ -86,7 +86,11 @@ export default {
commit('resetCount')
commit('resetNoresults')
commit('resetOffset')
this.commit('Common/setPagetitle', state.keys)
if(state.keys || state.term){
this.commit('Common/setPagetitle', state.keys)
}else{
this.commit('Common/setPagetitle', 'Base')
}
dispatch('getResults')
},
nextPage ({ dispatch, commit, state }, $infiniteLoadingstate) {