jscdn.ink/dist/router.js

31 lines
494 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: '/',
2023-11-14 19:14:01 +08:00
name: 'wc-home'
2023-11-14 18:29:28 +08:00
},
{
path: '/about',
name: 'wc-about'
},
{
path: '/request',
name: 'wc-request'
},
{
path: '/login',
name: 'wc-login'
}
]
})
export default router