first commit

This commit is contained in:
jxxghp
2023-06-24 08:22:59 +08:00
commit 5b9bf63591
250 changed files with 21121 additions and 0 deletions

62
src/router/index.ts Normal file
View 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