fixed webpack prod, fixed language prefix negociation in vue-router
This commit is contained in:
@ -13,7 +13,8 @@ export default {
|
||||
return {
|
||||
template: null,
|
||||
typed: null,
|
||||
autocomplete: null
|
||||
autocomplete: null,
|
||||
// basePath: drupalSettings.path.baseUrl + drupalSettings.path.pathPrefix
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -24,9 +25,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
console.log("search clicked", this.keys, this.autocomplete);
|
||||
console.log("search clicked", this.typed, this.autocomplete);
|
||||
// New search is triggered by Base.vue with router (which will also fill the store)
|
||||
this.$router.push({name:'base', query:{keys:this.typed,term:this.autocomplete}})
|
||||
// this.$router.push({
|
||||
// path:`${this.basePath}/base`,
|
||||
// query:{keys:this.typed,term:this.autocomplete}
|
||||
// })
|
||||
},
|
||||
onAutoCompleteSelect(event, ui){
|
||||
event.preventDefault();
|
||||
|
Reference in New Issue
Block a user