fix 新建用例勾选保存并继续创建后,新的用例内容没有清空

This commit is contained in:
shiziyuan9527 2020-07-03 15:31:10 +08:00
parent 6ea6725356
commit 9cfaa9ab73
1 changed files with 7 additions and 0 deletions

View File

@ -355,6 +355,13 @@
this.$success(this.$t('commons.save_success'));
if (this.operationType == 'add' && this.isCreateContinue) {
this.form.name = '';
this.form.prerequisite = '';
this.form.steps = [{
num: 1,
desc: '',
result: ''
}];
this.form.remark = '';
this.$emit("refresh");
return;
}