diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtGroupMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtGroupMapper.xml index c8ea689d6d..c7c392e111 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtGroupMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtGroupMapper.xml @@ -4,7 +4,8 @@ diff --git a/backend/src/main/java/io/metersphere/service/UserService.java b/backend/src/main/java/io/metersphere/service/UserService.java index a9ddaed719..2ade75165f 100644 --- a/backend/src/main/java/io/metersphere/service/UserService.java +++ b/backend/src/main/java/io/metersphere/service/UserService.java @@ -377,10 +377,6 @@ public class UserService { MSException.throwException(Translator.get("cannot_delete_current_user")); } - UserRoleExample example = new UserRoleExample(); - example.createCriteria().andUserIdEqualTo(userId); - userRoleMapper.deleteByExample(example); - UserGroupExample userGroupExample = new UserGroupExample(); userGroupExample.createCriteria().andUserIdEqualTo(userId); userGroupMapper.deleteByExample(userGroupExample); diff --git a/frontend/src/business/components/settings/system/components/GroupCascader.vue b/frontend/src/business/components/settings/system/components/GroupCascader.vue index ed31b6c142..9d8b87c91b 100644 --- a/frontend/src/business/components/settings/system/components/GroupCascader.vue +++ b/frontend/src/business/components/settings/system/components/GroupCascader.vue @@ -37,7 +37,7 @@ export default { let validateSelect = (rule, value, callback) => { let checkNodes = this.$refs.cascadeSelector.getCheckedNodes(true); if (checkNodes.length === 0) { - callback(new Error(this.$t('user.select_group'))); + callback(new Error(this.$t('user.select_group').toString())); } callback(); }; diff --git a/frontend/src/business/components/settings/system/components/ProjectCascader.vue b/frontend/src/business/components/settings/system/components/ProjectCascader.vue index 97703d64d1..8ba4664050 100644 --- a/frontend/src/business/components/settings/system/components/ProjectCascader.vue +++ b/frontend/src/business/components/settings/system/components/ProjectCascader.vue @@ -43,7 +43,7 @@ export default { let validateSelect = (rule, value, callback) => { let checkNodes = this.$refs.cascadeSelector.getCheckedNodes(true); if (checkNodes.length === 0) { - callback(new Error(this.$t('user.select_project'))); + callback(new Error(this.$t('user.select_project').toString())); } callback(); }; diff --git a/frontend/src/business/components/settings/system/group/GroupMember.vue b/frontend/src/business/components/settings/system/group/GroupMember.vue index c74e5c41c7..3191bb6914 100644 --- a/frontend/src/business/components/settings/system/group/GroupMember.vue +++ b/frontend/src/business/components/settings/system/group/GroupMember.vue @@ -1,7 +1,6 @@