re-request api on filter cha,nge

This commit is contained in:
2023-06-01 12:30:43 +02:00
parent 76b56c62ce
commit 51fbc60036
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ export default defineComponent({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { player: _, ...withoutPlayer } = this.$route.query
router.push({ query: { player: newValue?.id, ...withoutPlayer } })// .then(e => { console.log(e) })
this.store.setFilter({ player: newValue?.id, ...this.store.currentFilter })
this.store.setFilter({ ...this.store.currentFilter, player: newValue?.id })
},
$route: {
handler: function () {