Implement currentBudget and move infos to sidebar

This commit is contained in:
2022-01-25 08:37:38 +00:00
parent 33990bdccf
commit af3252277c
6 changed files with 91 additions and 66 deletions

View File

@ -1,4 +1,4 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import Budget from '../pages/Budget.vue';
import Dashboard from '../pages/Dashboard.vue';
import Login from '../pages/Login.vue';
@ -6,13 +6,14 @@ import Register from '../pages/Register.vue';
const routes = [
{ path: '/', name: 'Index', component: Dashboard },
{ path: '/dashboard', name: 'Dashboard', component: Dashboard },
{ path: '/login', name: 'Login', component: Login },
{ path: '/register', name: 'Register', component: Register },
{ path: '/budget/:budgetid', name: 'Budget', component: Budget },
{ path: '/budget/:budgetid', name: 'Budget', components: {default: Dashboard, sidebar: Budget } },
]
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(),
routes,
})