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

@@ -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"
]
}
}