feat(router): 重新添加主页路由并更新侧边栏样式

- 在 app/index.js 中重新添加主页路由
- 在 generatedRouter/index.js 中添加主页路由的动态导入- 更新 Logo.vue 中的 logo 图片和样式
- 调整 Sidebar.vue 中的 logo 位置和样式
This commit is contained in:
du.meimei
2025-04-23 11:44:57 +08:00
parent 33010a65c9
commit 190ebd8d9d
5 changed files with 45 additions and 20 deletions

View File

@@ -1,7 +1,30 @@
import layout from '@/views/app/layout/layout.vue'
import redirect from '@/views/app/redirect/index.vue'
const home = () => import('@/views/app/Home')
export default [
{
path: '/',
component: layout,
redirect: '/home',
name: 'home',
meta: {
title: '主页',
icon: 'el-icon-s-home',
affix: true
},
children: [
{
path: '/home',
name: 'home-page',
component: home,
meta: {
title: '主页',
icon: 'el-icon-s-home'
}
}
]
},
{
path: '/knowledge',
name: 'knowledge',