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