jscdn.ink/src/router.js

31 lines
598 B
JavaScript
Raw Normal View History

2022-12-29 19:05:15 +08:00
import { createRouter, createWebHistory } from 'vue-router'
import Home from './views/home.vue'
const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/about',
name: 'about',
component: () => import('./views/about.vue')
},
{
path: '/request',
name: 'request',
component: () => import('./views/request.vue')
2023-01-14 16:49:53 +08:00
},
{
path: '/login',
name: 'login',
component: () => import('./views/login.vue')
2022-12-29 19:05:15 +08:00
}
]
})
export default router