fix(项目设置): 修复创建版本名称重复报错提示两个

--bug=1018705 --user=刘瑞斌 【项目设置】版本管理-创建版本名称重复时,提示信息重复弹出两条 https://www.tapd.cn/55049933/s/1273861
This commit is contained in:
CaptainB 2022-10-24 11:35:04 +08:00 committed by 刘瑞斌
parent 102ff8678d
commit 9d32bc698a
1 changed files with 1 additions and 7 deletions

View File

@ -312,9 +312,8 @@ export default {
});
}
}
saveProjectVersion(this.form)
this.createLoading = saveProjectVersion(this.form)
.then(resp => {
this.createLoading = false;
this.$success(this.$t('commons.save_success'));
this.initData();
if (create) {
@ -323,12 +322,7 @@ export default {
this.createVisible = false;
}
})
.catch(err => {
this.createLoading = false;
this.$error(err.response.data.message);
});
} else {
this.createLoading = false;
return false;
}
});