fix(接口自动化): 自定义脚本问题修复
This commit is contained in:
parent
3c96877c1c
commit
8f45254225
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue