diff --git a/YD_Event.Core/InitData/sysmenu.txt b/YD_Event.Core/InitData/sysmenu.txt index daee884..198afe2 100644 --- a/YD_Event.Core/InitData/sysmenu.txt +++ b/YD_Event.Core/InitData/sysmenu.txt @@ -1315,7 +1315,7 @@ "Name": "积分管理", "Type": 0, "Code": "integral", - "ParentId": 1012, + "ParentId": null, "RouteName": "integral", "Path": "/integral", "Component": "ParentView", @@ -1325,7 +1325,7 @@ "IsKeepAlive": "1", "IsFixed": "0", "Status": 0, - "Sort": 1, + "Sort": 161, "Remark": "", "DeleteMark": false, "CreatedUserId": 1000, diff --git a/YD_Event.Web.Core/Startup.cs b/YD_Event.Web.Core/Startup.cs index 410be9d..92dab8d 100644 --- a/YD_Event.Web.Core/Startup.cs +++ b/YD_Event.Web.Core/Startup.cs @@ -79,7 +79,16 @@ public class Startup : AppStartup }); //允许跨域 - services.AddCorsAccessor(); + services.AddCorsAccessor(options => + { + options.AddPolicy("Furion", builder => + { + builder.SetIsOriginAllowed(_ => true) + .AllowAnyMethod() + .AllowAnyHeader() + .AllowCredentials(); + }); + }); //配置缓存 文档:https://easycaching.readthedocs.io/en/latest/ services.AddEasyCaching(options =>