Implement account-view

This commit is contained in:
2022-01-25 19:03:58 +00:00
parent e184ef933f
commit 458f4f0e8f
5 changed files with 87 additions and 12 deletions

View File

@ -3,13 +3,15 @@ import BudgetSidebar from '../pages/BudgetSidebar.vue';
import Dashboard from '../pages/Dashboard.vue';
import Login from '../pages/Login.vue';
import Register from '../pages/Register.vue';
import Account from '../pages/Account.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', components: {default: Dashboard, sidebar: BudgetSidebar}, props: true },
{ path: '/budget/:budgetid', name: 'Budget', components: { default: Dashboard, sidebar: BudgetSidebar }, props: true },
{ path: '/budget/:budgetid/account/:accountid', name: 'Account', components: { default: Account, sidebar: BudgetSidebar }, props: true },
]
const router = createRouter({