mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-12 16:01:35 +08:00
first commit
This commit is contained in:
62
src/router/index.ts
Normal file
62
src/router/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{ path: '/', redirect: '/dashboard' },
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('../layouts/default.vue'),
|
||||
children: [
|
||||
{
|
||||
path: 'dashboard',
|
||||
component: () => import('../pages/dashboard.vue'),
|
||||
},
|
||||
{
|
||||
path: 'account-settings',
|
||||
component: () => import('../pages/account-settings.vue'),
|
||||
},
|
||||
{
|
||||
path: 'typography',
|
||||
component: () => import('../pages/typography.vue'),
|
||||
},
|
||||
{
|
||||
path: 'icons',
|
||||
component: () => import('../pages/icons.vue'),
|
||||
},
|
||||
{
|
||||
path: 'cards',
|
||||
component: () => import('../pages/cards.vue'),
|
||||
},
|
||||
{
|
||||
path: 'tables',
|
||||
component: () => import('../pages/tables.vue'),
|
||||
},
|
||||
{
|
||||
path: 'form-layouts',
|
||||
component: () => import('../pages/form-layouts.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('../layouts/blank.vue'),
|
||||
children: [
|
||||
{
|
||||
path: 'login',
|
||||
component: () => import('../pages/login.vue'),
|
||||
},
|
||||
{
|
||||
path: 'register',
|
||||
component: () => import('../pages/register.vue'),
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
component: () => import('../pages/[...all].vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user