appstore/dist/router.js

35 lines
559 B
JavaScript
Raw Permalink 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'
2023-12-29 15:49:55 +08:00
import './views/deliver.js'
2023-12-19 15:30:29 +08:00
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'
},
2023-12-29 15:49:55 +08:00
{
path: '/deliver',
name: 'wc-deliver'
},
2023-12-19 15:30:29 +08:00
{
path: '/login',
name: 'wc-login'
}
]
})
export default router