Initial commit

This commit is contained in:
xiongxiaoyang
2022-05-14 08:02:38 +08:00
parent c719f1378b
commit 3f079db001
44 changed files with 7346 additions and 84 deletions

27
src/router/index.js Normal file
View File

@ -0,0 +1,27 @@
import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
// createWebHistory 路由模式路径不带#号(生产环境下不能直接访问项目,需要 nginx 转发)
// createWebHashHistory 路由模式路径带#号
history: createWebHashHistory(),
routes: [
{
path: '/',
redirect: '/home'
},
{
path: '/home',
name: 'home',
component: () => import('@/views/Home')
},
{
path: '/home',
name: 'book',
component: () => import('@/views/Home')
}
]
})
export default router