Skip to content

Commit

Permalink
fix(advanced): Re-run query when route changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Mar 26, 2023
1 parent 3817017 commit 272ef7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pages/advanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ export default Vue.extend({
]
}
},
watch:{
$route (to, from){
if (this.$route.query) {
this.$accessor.advanced.setInitialStateByEncodedString(this.$route.query)
}
}
},
data: () => ({
mdiMagnifySvg: mdiMagnify,
}),
Expand All @@ -113,6 +120,7 @@ export default Vue.extend({
},
},
mounted() {
// Load initial data
this.$accessor.advanced.fetchColumns()
this.$accessor.advanced.fetchOperators()
Expand Down

0 comments on commit 272ef7e

Please sign in to comment.