feat(project): 初始化项目结构和配置
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
import { createWebHashHistory, createRouter } from 'vue-router'
|
||||
|
||||
export const bookRoutes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'shelf',
|
||||
component: () => import('../views/BookShelf.vue'),
|
||||
},
|
||||
{
|
||||
path: '/chapter',
|
||||
name: 'chapter',
|
||||
component: () => import('../views/BookChapter.vue'),
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
// mode: "history",
|
||||
history: createWebHashHistory(),
|
||||
routes: bookRoutes,
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user