fix(接口自动化): 场景步骤循环控制器无法执行的问题
This commit is contained in:
parent
e15b1624a8
commit
df73916d7d
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ms-run :debug="true" :environment="currentEnvironmentId" :reportId="reportId" :run-data="debugData"
|
<ms-run :debug="true" :environment="envMap" :reportId="reportId" :run-data="debugData"
|
||||||
@runRefresh="runRefresh" ref="runTest"/>
|
@runRefresh="runRefresh" ref="runTest"/>
|
||||||
<api-base-component
|
<api-base-component
|
||||||
@copy="copyRow"
|
@copy="copyRow"
|
||||||
|
@ -115,6 +115,7 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
envMap: Map
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// this.initResult();
|
// this.initResult();
|
||||||
|
@ -193,11 +194,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
runDebug() {
|
runDebug() {
|
||||||
/*触发执行操作*/
|
|
||||||
if (!this.currentEnvironmentId) {
|
|
||||||
this.$error(this.$t('api_test.environment.select_environment'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!this.controller.hashTree || this.controller.hashTree.length < 1) {
|
if (!this.controller.hashTree || this.controller.hashTree.length < 1) {
|
||||||
this.$warning("当前循环下没有请求,不能执行")
|
this.$warning("当前循环下没有请求,不能执行")
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue