style:增加左侧导航及头部导航栏

This commit is contained in:
李晓鸽
2022-09-28 18:33:52 +08:00
commit f416bb7da8
37 changed files with 20589 additions and 0 deletions

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

@@ -0,0 +1,19 @@
import { createRouter, createWebHashHistory } from 'vue-router';
import routesConfig from './config';
// console.log('routesConfig', routesConfig)
const routes = [
{
path: '/',
name: '首页',
redirect: routesConfig[0].path
},
...routesConfig
]
const router = createRouter({
history: createWebHashHistory(),
routes
})
export default router