fix (接口自动化): 修复单条场景执行状态为实时更新问题

This commit is contained in:
fit2-zhao 2021-09-14 14:04:54 +08:00 committed by fit2-zhao
parent 3051149371
commit 67c53caa62
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,7 @@
:dialog-title="$t('test_track.case.batch_edit_case')"/>
<batch-move @refresh="search" @moveSave="moveSave" ref="testBatchMove"/>
<ms-run-mode @handleRunBatch="handleRunBatch" ref="runMode"/>
<ms-run :debug="true" v-if="type!=='detail'" :environment="projectEnvMap" @runRefresh="runRefresh" :reportId="reportId" :saved="true"
<ms-run :debug="true" :environment="projectEnvMap" @runRefresh="runRefresh" :reportId="reportId" :saved="true"
:run-data="debugData" ref="runTest"/>
<ms-task-center ref="taskCenter"/>
</div>
@ -830,6 +830,7 @@ export default {
return new Promise((resolve) => {
this.result = this.$get("/api/automation/getApiScenario/" + scenarioId, response => {
if (response.data) {
this.currentScenario = response.data;
if (response.data.scenarioDefinition != null) {
let obj = JSON.parse(response.data.scenarioDefinition);
this.currentScenario.scenarioDefinition = obj;