fix: 一键运行同一项目报错提示

This commit is contained in:
wenyann 2020-08-27 14:59:18 +08:00
parent 788e020168
commit d8094b3907
1 changed files with 4 additions and 0 deletions

View File

@ -75,12 +75,16 @@
checkedSaveAndRunTest() {
if (this.selectNames.has(this.ruleForm.testName)) {
this.selectIds.clear()
this.selectProjectNames.clear()
this.selectNames.clear()
this.$warning(this.$t('load_test.already_exists'));
this.oneClickOperationVisible = false;
this.$emit('refresh')
} else {
if (this.selectProjectNames.size > 1) {
this.selectIds.clear()
this.selectProjectNames.clear()
this.selectNames.clear()
this.$warning(this.$t('load_test.same_project_test'));
this.oneClickOperationVisible = false;
this.$emit('refresh')