Improve and optimize the active rules code in routing settings

This commit is contained in:
2dust
2025-07-06 18:15:07 +08:00
parent 1d01476523
commit da3d4c36a9
5 changed files with 32 additions and 13 deletions
@@ -91,11 +91,9 @@ public class RoutingSettingViewModel : MyReactiveObject
var routings = await AppHandler.Instance.RoutingItems();
foreach (var item in routings)
{
var def = item.Id == _config.RoutingBasicItem.RoutingIndexId;
var it = new RoutingItemModel()
{
IsActive = def,
IsActive = item.IsActive,
RuleNum = item.RuleNum,
Id = item.Id,
Remarks = item.Remarks,