feat: 1. 将大部分的请求从fetch改成axios方便管理。
2. 给文档类型添加入口模块和相关数据的渲染。并且给文档类型进行功能上的角色权限区分 3. 新增角色权限管理页面
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user