Use props for budgetid
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<script>
|
||||
export default {
|
||||
props: ['budgetid'],
|
||||
mounted () {
|
||||
const budgetid = this.$route.params.budgetid;
|
||||
this.$store.dispatch("setCurrentBudget", budgetid)
|
||||
this.$store.dispatch("setCurrentBudget", this.budgetid)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user