fix(系统设置): 用户编辑改动

解决【系统设置】先添加系统管理员系统,再添加项目管理员系统,会清空之前的选好的工作空间
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013408
--id=1013408
--user=郭雨琦
This commit is contained in:
guoyuqi 2022-05-25 13:21:42 +08:00 committed by f2c-ci-robot[bot]
parent 7c9ae4863e
commit f426316f7e
1 changed files with 2 additions and 3 deletions

View File

@ -256,6 +256,8 @@ export default {
if (isHaveWorkspace === 0 && isHaveProject >0 ) { if (isHaveWorkspace === 0 && isHaveProject >0 ) {
this.$message.warning(this.$t('commons.not_eligible_for_deletion')) this.$message.warning(this.$t('commons.not_eligible_for_deletion'))
return false; return false;
} else {
this.currentGroupWSIds = new Set;
} }
} }
return true; return true;
@ -317,9 +319,6 @@ export default {
if (type === 'PROJECT') { if (type === 'PROJECT') {
for (let i = 0; i < this.form.groups.length; i++) { for (let i = 0; i < this.form.groups.length; i++) {
let group = this.form.groups[i]; let group = this.form.groups[i];
if (i === this.currentWSGroupIndex) {
this.form.groups[i].ids = [];
}
let _type = group.type.split("+")[1]; let _type = group.type.split("+")[1];
if (_type === 'WORKSPACE') { if (_type === 'WORKSPACE') {
isHaveWorkspace = true; isHaveWorkspace = true;