refactor: remove old demo pages and static menu logic

1. 删除大量旧的示例页面、组件示例和静态菜单配置
2. 新增菜单扁平数组转树形结构工具函数
3. 重构菜单加载逻辑,改为从后端动态获取并格式化
4. 新增全局权限检查方法和自定义权限指令
5. 优化侧边栏菜单路由跳转逻辑,自动跳转第一个有权限的子页面
6. 移除路由中对旧demo模块的引用
This commit is contained in:
sheng
2026-05-27 18:07:48 +08:00
parent 0f3b5d4371
commit 2cc8329695
96 changed files with 799 additions and 4985 deletions

View File

@@ -1,9 +1,5 @@
import playground from './modules/playground'
import plugins from './modules/plugins'
import components from './modules/components'
import productionMasterData from './modules/production-master-data'
import layoutHeaderAside from '@/layout/header-aside'
import productionMasterData from './modules/production-master-data'
// 由于懒加载页面太多的话会造成webpack热更新太慢所以开发环境不使用懒加载只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)
@@ -53,9 +49,6 @@ const frameIn = [
}
]
},
playground,
plugins,
components,
productionMasterData
]