From bde9fd85641630fe232ba512aba26cf91cb0bc9f Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期二, 05 八月 2025 10:23:47 +0800
Subject: [PATCH] fix:bug

---
 FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs                      |    3 +++
 FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs b/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs
index fb77aa3..5f02b3f 100644
--- a/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs
+++ b/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs
@@ -6,6 +6,7 @@
 using Furion.FriendlyException;
 using Mapster;
 using MediatR;
+using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.ActionConstraints;
 using Microsoft.AspNetCore.Mvc.Controllers;
 using Microsoft.AspNetCore.Routing;
@@ -13,6 +14,7 @@
 using Microsoft.Extensions.DependencyInjection;
 using System;
 using System.Collections.Generic;
+using System.ComponentModel;
 using System.Linq;
 using System.Reflection;
 using System.Text;
@@ -146,6 +148,7 @@
 using System;
 using System.Threading.Tasks;
 using System.Collections.Generic;
+using System.ComponentModel;
 
 namespace {controller.Key.ApplicationName}
 {{
diff --git a/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs b/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs
index 5bf2ae7..67bde63 100644
--- a/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs
+++ b/FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs
@@ -40,7 +40,7 @@
             {
                 var entity = new Menu();
                 entity.Path = $"{parent.Path}{parent.Code}/";
-                entity.Type = EnumMenuType.Button;
+                entity.Type = EnumMenuType.Field;
                 entity.VisitLevel = parent.VisitLevel;
                 request.Adapt(entity);
                 if (await CheckExist(entity)) throw Oops.Oh(EnumErrorCodeType.s405, "鑿滃崟缂栧彿");

--
Gitblit v1.9.1