fix: 修复缓存字段公开问题
This commit is contained in:
@@ -269,6 +269,7 @@ namespace Yi.Framework.Rbac.Application.Services
|
||||
}
|
||||
//此处优先从缓存中获取
|
||||
UserRoleMenuDto output = null;
|
||||
|
||||
var cacheData = await _userCache.GetAsync(new UserInfoCacheKey(userId.Value));
|
||||
if (cacheData is not null)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Yi.Framework.Rbac.Domain.Shared.Dtos
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public Guid Id { get; protected set; }
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 逻辑删除
|
||||
@@ -134,7 +134,7 @@ namespace Yi.Framework.Rbac.Domain.Shared.Dtos
|
||||
}
|
||||
public class RoleDto
|
||||
{
|
||||
public Guid Id { get; protected set; }
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 逻辑删除
|
||||
@@ -194,7 +194,7 @@ namespace Yi.Framework.Rbac.Domain.Shared.Dtos
|
||||
}
|
||||
public class MenuDto
|
||||
{
|
||||
public Guid Id { get; protected set; }
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 逻辑删除
|
||||
|
||||
@@ -20,6 +20,7 @@ router.beforeEach((to, from, next) => {
|
||||
} else {
|
||||
if (useUserStore().roles.length === 0) {
|
||||
// 判断当前用户是否已拉取完user_info信息
|
||||
alert("获取用户信息")
|
||||
useUserStore()
|
||||
.getInfo()
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user