Closed s641135196 closed 5 years ago
这样有试的, 不行的了, 在默认的Admin area下是没问题的。 因为我是新加的area. 这个area名称不能自定义为中文。
添加一个 AreaInfoAttribute
特性类,用于代替 AreaAttribute
添加区域信息,支持区域的Display中文显示
[AreaInfo("Admin", Display = "管理")]
[RoleLimit]
public abstract class AdminApiController : AreaApiController
{ }
物理新增Area的话,会涉及到很多修改。
新加个area名称WorkOrder不能设置为中文
再加了个控制器,生成的权限菜单,
如果要让WorkOrder变成中文“工单模块”, 得在源代码增加红色框代码。