jscdn.ink/dist/router.js

32 lines
517 B
JavaScript
Raw Normal View History

2023-11-14 18:29:28 +08:00
import { createRouter, createWebHistory } from 'wkitd'
import './views/home.js'
import './views/request.js'
import './views/login.js'
import './views/about.js'
const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
name: 'wc-home',
component: Home
},
{
path: '/about',
name: 'wc-about'
},
{
path: '/request',
name: 'wc-request'
},
{
path: '/login',
name: 'wc-login'
}
]
})
export default router