feat: 1. 将大部分的请求从fetch改成axios方便管理。

2. 给文档类型添加入口模块和相关数据的渲染。并且给文档类型进行功能上的角色权限区分
3. 新增角色权限管理页面
This commit is contained in:
2025-11-20 20:34:31 +08:00
parent 2e604e8ede
commit 3850d05bdd
25 changed files with 2299 additions and 762 deletions
+7
View File
@@ -607,6 +607,13 @@ function convertIcon(elementIcon: string | null): string {
if (!elementIcon) {
return 'ri-file-line'; // 默认图标
}
// 如果已经是 RemixIcon 格式(以 ri- 开头),直接返回
if (elementIcon.startsWith('ri-')) {
return elementIcon;
}
// 否则尝试从 Element UI 映射表中查找
return ICON_MAPPING[elementIcon] || 'ri-file-line';
}