diff --git a/assets/seed-data/Sys_Menu.json b/assets/seed-data/Sys_Menu.json index 00647d8d..49567e0c 100644 --- a/assets/seed-data/Sys_Menu.json +++ b/assets/seed-data/Sys_Menu.json @@ -130,7 +130,7 @@ }, // ------------------------------ 系统管理 ------------------------------ { - "Icon": "sc-icon-App", + "Icon": "sc-icon-app", "Id": 485278637670422, "Name": "sys", "Path": "/sys", @@ -151,7 +151,7 @@ }, { "Component": "sys/job", - "Icon": "sc-icon-ScheduledJob", + "Icon": "sc-icon-scheduled-job", "Id": 510067557638158, "Name": "sys/job", "ParentId": 485278637670422, @@ -206,7 +206,7 @@ }, // ------------------------------ 档案管理 ------------------------------ { - "Icon": "sc-icon-Archive", + "Icon": "sc-icon-archive", "Id": 616214756757512, "Name": "archive", "Path": "/archive", @@ -248,7 +248,7 @@ }, { "Component": "sys/log/login", - "Icon": "sc-icon-OpenDoor", + "Icon": "sc-icon-open-door", "Id": 485285246504970, "Name": "sys/log/login", "ParentId": 374792687640581, @@ -291,7 +291,7 @@ { "Id": 560217289232398, "ParentId": 373838105399301, - "Icon": "sc-icon-FreeSql", + "Icon": "sc-icon-free-sql", "Name": "dev/freesql", "Path": "https://freesql.net/guide", "Sort": 99, diff --git a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs index 52479118..ed41d66c 100644 --- a/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs +++ b/src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/DevService.cs @@ -141,8 +141,8 @@ public sealed class DevService(IApiService apiService) : ServiceBase indexJsFile, Environment.NewLine + tplExport.Replace("$iconName$", req.IconName).Replace(_REPLACE_TO_EMPTY, string.Empty)) .ConfigureAwait(false); - // 修改iconSelect.js - var iconSelectFile = Path.Combine(_clientProjectPath, "src", "config", "iconSelect.js"); + // 修改icon-select.js + var iconSelectFile = Path.Combine(_clientProjectPath, "src", "config", "icon-select.js"); var iconSelectContent = await File.ReadAllTextAsync(iconSelectFile).ConfigureAwait(false); iconSelectContent = iconSelectContent.Replace("export default", "exportDefault:").Replace("'", "\""); iconSelectContent = _regex2.Replace(iconSelectContent, "\"$1\":"); diff --git a/src/frontend/admin/.prettierignore b/src/frontend/admin/.prettierignore index 32b46468..4d261ae6 100644 --- a/src/frontend/admin/.prettierignore +++ b/src/frontend/admin/.prettierignore @@ -1,4 +1,4 @@ # 忽略格式化文件 (根据项目需要自行添加) node_modules dist -iconSelect.js \ No newline at end of file +icon-select.js \ No newline at end of file diff --git a/src/frontend/admin/index.html b/src/frontend/admin/index.html index 6ff3fbc9..23b53112 100644 --- a/src/frontend/admin/index.html +++ b/src/frontend/admin/index.html @@ -100,7 +100,7 @@ -
+