Implement watch for accounts as well
This commit is contained in:
1 parent
4f2b3b7b22
commit
6dcf7da861
1 file changed
+5
@@ -3,6 +3,11 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.$store.dispatch("setCurrentAccount", {budgetid: this.budgetid, accountid: this.accountid})
|
this.$store.dispatch("setCurrentAccount", {budgetid: this.budgetid, accountid: this.accountid})
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
accountid () {
|
||||||
|
this.$store.dispatch("setCurrentAccount", {budgetid: this.budgetid, accountid: this.accountid})
|
||||||
|
}
|
||||||
|
},
|
||||||
props: ["budgetid", "accountid"]
|
props: ["budgetid", "accountid"]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in new issue
Block a user