update 默认路由配置文件

This commit is contained in:
2021-05-08 10:43:52 +08:00
parent 5a2909f121
commit 99dcb53f27
4 changed files with 30 additions and 2 deletions

View File

@@ -235,9 +235,13 @@ namespace Ewide.Core.Service
var user = input.Adapt<SysUser>();
await user.UpdateExcludeAsync(new string[] {
nameof(SysUser.Account),
nameof(SysUser.Name),
nameof(SysUser.Password),
nameof(SysUser.AdminType),
nameof(SysUser.Status)
nameof(SysUser.Status),
// 邮箱和手机号作为可能登录的方式,不能在此处直接进行修改
nameof(SysUser.Phone),
nameof(SysUser.Email)
}, true);
}

View File

@@ -19,4 +19,10 @@
<ProjectReference Include="..\Ewide.Database.Migrations\Ewide.Database.Migrations.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="core.settings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

View File

@@ -57,9 +57,15 @@ namespace Ewide.Web.Core
var defalutRoute = new List<string>()
{
"getLoginUser",
"logout"
"logout",
"sysFileInfo:upload",
"sysFileInfo:download",
"sysFileInfo:preview",
"sysUser:updateInfo"
};
var a = App.Configuration["CoreSettings:DefalutRoute"];
if (defalutRoute.Contains(routeName)) return true;
// 获取用户权限集合按钮或API接口

View File

@@ -0,0 +1,12 @@
{
"CoreSettings": {
"DefalutRoute": [
"getLoginUser",
"logout",
"sysFileInfo:upload",
"sysFileInfo:download",
"sysFileInfo:preview",
"sysUser:updateInfo"
]
}
}