diff --git a/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs b/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs index aa2f11a3..eb193f98 100644 --- a/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs +++ b/Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs @@ -359,7 +359,8 @@ public class SysTenantService : IDynamicApiController, ITransient await _sysOrgRep.UpdateAsync(u => new SysOrg() { Name = input.Name, Pid = input.OrgPid }, u => u.Id == input.OrgId); // 更新系统用户 - await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email }, u => u.Id == input.UserId); + await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email }, + u => u.Id == input.UserId); await CacheTenant(input.Id); @@ -627,6 +628,7 @@ public class SysTenantService : IDynamicApiController, ITransient var tenant = await _sysTenantRep.GetFirstAsync(u => u.Id == input.TenantId); _ = tenant ?? throw Oops.Oh(ErrorCodeEnum.D1002); + var originLogo = tenant.Logo; tenant = input.Adapt(); tenant.Id = input.TenantId; @@ -665,7 +667,7 @@ public class SysTenantService : IDynamicApiController, ITransient } else { - tenant.Logo = tenant.Logo; + tenant.Logo = originLogo; } await _sysTenantRep.AsUpdateable(tenant).UpdateColumns(u => new diff --git a/Admin.NET/Admin.NET.Web.Entry/wwwroot/template/service_Mid.cs.vm b/Admin.NET/Admin.NET.Web.Entry/wwwroot/template/service_Mid.cs.vm index 7d44eefd..697ec0d1 100644 --- a/Admin.NET/Admin.NET.Web.Entry/wwwroot/template/service_Mid.cs.vm +++ b/Admin.NET/Admin.NET.Web.Entry/wwwroot/template/service_Mid.cs.vm @@ -87,7 +87,7 @@ public partial class @(@Model.ClassName)Mid @: var key = $"@(@column.FkEntityName)_{t.@(@column.PropertyName)}"; @: if (!sysCacheService.ExistKey(key)) @: { - @: var m = db.ForTenant<@(@column.FkEntityName)>().Queryable<@(@column.FkEntityName)>().FirstAsync(f => f.@(@column.FkLinkColumnName) == t.@(@column.PropertyName)); + @: var m = db.ForTenant<@(@column.FkEntityName)>().Queryable<@(@column.FkEntityName)>().First(f => f.@(@column.FkLinkColumnName) == t.@(@column.PropertyName)); @: if (m != null) sysCacheService.Set(key, m); @: } @: t.@(@column.PropertyName)@(@column.FkColumnName) = sysCacheService.Get<@(@column.FkEntityName)>(key)?.@(@column.FkColumnName); diff --git a/Web/src/hooks/useVxeTableOptionsHook.ts b/Web/src/hooks/useVxeTableOptionsHook.ts index 1eb7ea15..efcf1c2b 100644 --- a/Web/src/hooks/useVxeTableOptionsHook.ts +++ b/Web/src/hooks/useVxeTableOptionsHook.ts @@ -68,7 +68,7 @@ export const useVxeTable = (opt: iVxeOption, extras?: VxeGridProps) => { pagerConfig: { enabled: true, size: vxeSize, - pageSize: 20, + pageSize: 50, }, printConfig: { sheetName: '' }, // proxyConfig: { diff --git a/Web/src/views/system/user/component/userCenter.vue b/Web/src/views/system/user/component/userCenter.vue index e1a2c132..1c772733 100644 --- a/Web/src/views/system/user/component/userCenter.vue +++ b/Web/src/views/system/user/component/userCenter.vue @@ -322,14 +322,15 @@ const submitPassword = () => { cpwd.passwordNew = sm2.doEncrypt(state.ruleFormPassword.passwordNew, publicKey, 1); await getAPI(SysUserApi).apiSysUserChangePwdPost(cpwd); - // 退出系统 - ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), { - confirmButtonText: t('message.list.confirmButtonText'), - cancelButtonText: t('message.list.cancelButtonText'), - type: 'warning', - }).then(async () => { - clearAccessTokens(); - }); + // 修改密码后后端会强制下线,无需弹出确认重新登录提示 + // // 退出系统 + // ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), { + // confirmButtonText: t('message.list.confirmButtonText'), + // cancelButtonText: t('message.list.cancelButtonText'), + // type: 'warning', + // }).then(async () => { + // clearAccessTokens(); + // }); }); };