diff --git a/backend/src/main/java/io/metersphere/service/OrganizationService.java b/backend/src/main/java/io/metersphere/service/OrganizationService.java index 35cd8b8f98..da5362d072 100644 --- a/backend/src/main/java/io/metersphere/service/OrganizationService.java +++ b/backend/src/main/java/io/metersphere/service/OrganizationService.java @@ -22,7 +22,7 @@ public class OrganizationService { organization.setCreateTime(currentTimeMillis); organization.setUpdateTime(currentTimeMillis); organizationMapper.insertSelective(organization); - return organization; + return organization; } public List getOrganizationList() { diff --git a/backend/src/main/java/io/metersphere/service/UserService.java b/backend/src/main/java/io/metersphere/service/UserService.java index 9321bbca03..64cbb4ac89 100644 --- a/backend/src/main/java/io/metersphere/service/UserService.java +++ b/backend/src/main/java/io/metersphere/service/UserService.java @@ -49,7 +49,8 @@ public class UserService { BeanUtils.copyProperties(userRequest, user); user.setCreateTime(System.currentTimeMillis()); user.setUpdateTime(System.currentTimeMillis()); - user.setStatus("0"); + // 默认1:启用状态 + user.setStatus("1"); UserExample userExample = new UserExample(); UserExample.Criteria criteria = userExample.createCriteria(); diff --git a/frontend/src/performance/components/settings/User.vue b/frontend/src/performance/components/settings/User.vue index 44c756d2b1..ef406f9e3f 100644 --- a/frontend/src/performance/components/settings/User.vue +++ b/frontend/src/performance/components/settings/User.vue @@ -15,8 +15,18 @@ - - + + + +