fix (接口自动化): 修复单条场景执行状态为实时更新问题
This commit is contained in:
parent
3233768933
commit
eab143abfb
|
@ -233,7 +233,7 @@
|
||||||
:dialog-title="$t('test_track.case.batch_edit_case')"/>
|
:dialog-title="$t('test_track.case.batch_edit_case')"/>
|
||||||
<batch-move @refresh="search" @moveSave="moveSave" ref="testBatchMove"/>
|
<batch-move @refresh="search" @moveSave="moveSave" ref="testBatchMove"/>
|
||||||
<ms-run-mode @handleRunBatch="handleRunBatch" ref="runMode"/>
|
<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"/>
|
:run-data="debugData" ref="runTest"/>
|
||||||
<ms-task-center ref="taskCenter"/>
|
<ms-task-center ref="taskCenter"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -859,6 +859,7 @@ export default {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
this.result = this.$get("/api/automation/getApiScenario/" + scenarioId, response => {
|
this.result = this.$get("/api/automation/getApiScenario/" + scenarioId, response => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
|
this.currentScenario = response.data;
|
||||||
if (response.data.scenarioDefinition != null) {
|
if (response.data.scenarioDefinition != null) {
|
||||||
let obj = JSON.parse(response.data.scenarioDefinition);
|
let obj = JSON.parse(response.data.scenarioDefinition);
|
||||||
this.currentScenario.scenarioDefinition = obj;
|
this.currentScenario.scenarioDefinition = obj;
|
||||||
|
|
Loading…
Reference in New Issue