Use props for budgetid
This commit is contained in:
1 parent
626e0ada40
commit
a2cc19d310
2 files changed
+3
-3
No files matched your search
@@ -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