Convert frontend to Vue #3

Merged
jacob1123 merged 158 commits from vue into master 2022-02-08 22:20:11 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit a2cc19d310 - Show all commits

View File

@ -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)
}
}

View File

@ -9,7 +9,7 @@ const routes = [
{ path: '/dashboard', name: 'Dashboard', component: Dashboard },
{ path: '/login', name: 'Login', component: Login },
{ path: '/register', name: 'Register', component: Register },
{ path: '/budget/:budgetid', name: 'Budget', components: {default: Dashboard, sidebar: BudgetSidebar } },
{ path: '/budget/:budgetid', name: 'Budget', components: {default: Dashboard, sidebar: BudgetSidebar}, props: true },
]
const router = createRouter({