fix (接口自动化): 修复场景变量多次打开累积问题

This commit is contained in:
fit2-zhao 2021-10-19 18:40:30 +08:00 committed by fit2-zhao
parent 245af574e0
commit 0d60c65b94
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,7 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<ms-variable-list ref="scenarioParameters"/>
<ms-variable-list ref="scenarioParameters" @setVariables="setVariables"/>
<ms-add-basis-api :currentProtocol="currentProtocol" ref="api"/>
</div>
</template>
@ -64,6 +64,9 @@ export default {
break;
}
},
setVariables(v,h){
this.data.variables = v;
},
getScenario() {
this.result = this.$get("/api/automation/getApiScenario/" + this.data.id, response => {
if (response.data) {