fix(接口自动化): 自定义脚本问题修复

This commit is contained in:
fit2-zhao 2021-01-22 14:18:42 +08:00
parent 3c96877c1c
commit 8f45254225
2 changed files with 6 additions and 6 deletions

View File

@ -72,7 +72,7 @@
</el-row>
<el-row>
<el-col :span="7">
<el-form-item :label="$t('api_test.automation.tag')" prop="tags">
<el-form-item :label="$t('api_test.automation.tag')" prop="tags">
<ms-input-tag :currentScenario="currentScenario" ref="tag"/>
</el-form-item>
</el-col>
@ -615,7 +615,7 @@
this.$refs.tag.open();
},
remove(row, node) {
let name = row.name === undefined ? "" : row.name;
let name = row === undefined || row.name === undefined ? "" : row.name;
this.$alert(this.$t('api_test.definition.request.delete_confirm_step') + ' ' + name + " ", '', {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
@ -696,9 +696,9 @@
}
},
checkDataIsCopy(){
checkDataIsCopy() {
//
if(this.currentScenario.copy){
if (this.currentScenario.copy) {
this.editScenario(false);
}
},

View File

@ -52,10 +52,10 @@
},
methods: {
remove() {
this.$emit('remove', this.jsr223ProcessorData, this.node);
this.$emit('remove', this.jsr223Processor, this.node);
},
copyRow() {
this.$emit('copyRow', this.jsr223ProcessorData, this.node);
this.$emit('copyRow', this.jsr223Processor, this.node);
},
}
}