【更新】修复微信开源1群提出的角色编辑bug,更新了首页图片尺寸高度

pull/52/head
小诺 2022-10-22 22:35:56 +08:00
parent d7df6ff222
commit 1a49935026
2 changed files with 7 additions and 5 deletions

View File

@ -32,17 +32,17 @@
<style scoped>
.carousel-images {
height: 150px;
height: 160px;
width: 100%;
cursor: pointer;
}
.snowy-right-card-one {
height: 150px;
height: 160px;
}
.ant-carousel :deep(.slick-slide) {
text-align: center;
height: 150px;
height: 160px;
line-height: 150px;
background: #364d79;
overflow: hidden;

View File

@ -141,8 +141,10 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
if(superRole) {
throw new CommonException("不可编辑超管角色");
}
if(SysRoleCategoryEnum.ORG.getValue().equals(sysRoleEditParam.getCategory()) && ObjectUtil.isEmpty(sysRoleEditParam.getOrgId())) {
throw new CommonException("orgId不能为空");
if(SysRoleCategoryEnum.ORG.getValue().equals(sysRoleEditParam.getCategory())) {
if (ObjectUtil.isEmpty(sysRoleEditParam.getOrgId())) {
throw new CommonException("orgId不能为空");
}
} else {
sysRoleEditParam.setOrgId(null);
}