Commit 0f8cdbcd by lizefeng

fix

parent 504c417e
...@@ -38,6 +38,7 @@ namespace AutoTurnOver ...@@ -38,6 +38,7 @@ namespace AutoTurnOver
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddSession(); services.AddSession();
services.AddMvc(options => { services.AddMvc(options => {
options.EnableEndpointRouting = false;
options.Filters.Add<UserFilterAttribute>(); // 添加身份验证过滤器 -- 菜单操作权限 options.Filters.Add<UserFilterAttribute>(); // 添加身份验证过滤器 -- 菜单操作权限
}).SetCompatibilityVersion(CompatibilityVersion.Version_2_1) }).SetCompatibilityVersion(CompatibilityVersion.Version_2_1)
.AddJsonOptions(options => { .AddJsonOptions(options => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment