fix: 一键运行同一项目报错提示
This commit is contained in:
parent
788e020168
commit
d8094b3907
|
@ -75,12 +75,16 @@
|
||||||
checkedSaveAndRunTest() {
|
checkedSaveAndRunTest() {
|
||||||
if (this.selectNames.has(this.ruleForm.testName)) {
|
if (this.selectNames.has(this.ruleForm.testName)) {
|
||||||
this.selectIds.clear()
|
this.selectIds.clear()
|
||||||
|
this.selectProjectNames.clear()
|
||||||
|
this.selectNames.clear()
|
||||||
this.$warning(this.$t('load_test.already_exists'));
|
this.$warning(this.$t('load_test.already_exists'));
|
||||||
this.oneClickOperationVisible = false;
|
this.oneClickOperationVisible = false;
|
||||||
this.$emit('refresh')
|
this.$emit('refresh')
|
||||||
} else {
|
} else {
|
||||||
if (this.selectProjectNames.size > 1) {
|
if (this.selectProjectNames.size > 1) {
|
||||||
this.selectIds.clear()
|
this.selectIds.clear()
|
||||||
|
this.selectProjectNames.clear()
|
||||||
|
this.selectNames.clear()
|
||||||
this.$warning(this.$t('load_test.same_project_test'));
|
this.$warning(this.$t('load_test.same_project_test'));
|
||||||
this.oneClickOperationVisible = false;
|
this.oneClickOperationVisible = false;
|
||||||
this.$emit('refresh')
|
this.$emit('refresh')
|
||||||
|
|
Loading…
Reference in New Issue