Implement watch for accounts as well
This commit is contained in:
parent
4f2b3b7b22
commit
6dcf7da861
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user