refactor(home): 重构首页配置和路由处理

- 修改首页路由动态加载逻辑
- 优化滑动导航组件中的菜单处理
- 调整 Vuex store 中的 mods 数据处理方式
- 重构 main.js 中的 HomePage 配置
This commit is contained in:
aixianling
2024-12-23 14:38:32 +08:00
parent b7c0350134
commit 711db33df3
4 changed files with 7 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ const createRoutes = (config = {}) => {
{path: '/dv', name: '数据大屏入口', component: () => import('../views/dvIndex')},
{path: '/v', name: 'Home', component: () => import('../views/home'), children: [
{path:'/',name:'mainEntry', component:()=>import('../views/mainEntry'),children:[
{name: "工作台", path: "${home}", component: () => import('${homePage}')},
{name: "${home}", path: "${home}", component: () => import('${homePage}')},
${routes.filter(e => ![sign, home].includes(e.name)).map(e => {
// 解构每个路由的属性,用于生成路由配置
const {name, label, esm} = e