appstore/dist/router.js

30 lines
469 B
JavaScript
Raw Normal View History

2023-12-19 15:30:29 +08:00
import { createRouter, createWebHistory } from 'wkitd'
import './views/home.js'
import './views/detail.js'
import './views/login.js'
const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
name: 'wc-home'
},
2023-12-27 18:55:01 +08:00
{
path: '/cate/:id',
name: 'wc-home'
},
2023-12-19 15:30:29 +08:00
{
path: '/view/:id',
name: 'wc-detail'
},
{
path: '/login',
name: 'wc-login'
}
]
})
export default router