fix (接口自动化): 修复场景变量多次打开累积问题
This commit is contained in:
parent
245af574e0
commit
0d60c65b94
|
@ -17,7 +17,7 @@
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
<ms-variable-list ref="scenarioParameters"/>
|
<ms-variable-list ref="scenarioParameters" @setVariables="setVariables"/>
|
||||||
<ms-add-basis-api :currentProtocol="currentProtocol" ref="api"/>
|
<ms-add-basis-api :currentProtocol="currentProtocol" ref="api"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -64,6 +64,9 @@ export default {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
setVariables(v,h){
|
||||||
|
this.data.variables = v;
|
||||||
|
},
|
||||||
getScenario() {
|
getScenario() {
|
||||||
this.result = this.$get("/api/automation/getApiScenario/" + this.data.id, response => {
|
this.result = this.$get("/api/automation/getApiScenario/" + this.data.id, response => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
|
|
Loading…
Reference in New Issue