fix(marketplace): add watcher for route change to fetch new items

This commit is contained in:
Mangesh-Khairnar 2019-12-04 15:59:17 +05:30
parent 8287c3d05a
commit fa170e3c84

View File

@ -58,6 +58,11 @@ export default {
this.search_value = '';
this.get_items();
},
watch:{
$route (to, from){
this.get_items()
}
},
methods: {
get_items() {
hub.call('get_data_for_homepage', frappe.defaults ? {