fix(接口测试): 场景本地执行无报告

This commit is contained in:
baiqi 2024-08-20 10:51:00 +08:00 committed by Craftsman
parent 89ef45c7dd
commit 75f177b50e
2 changed files with 7 additions and 1 deletions

View File

@ -66,7 +66,12 @@
<div class="text-[rgb(var(--warning-5))]">{{ scenario.executeFakeErrorCount }}</div>
</div>
<MsButton
v-if="scenario.isDebug === false && !scenario.executeLoading && !scenario.isNew"
v-if="
scenario.executeType !== 'localExec' &&
scenario.isDebug === false &&
!scenario.executeLoading &&
!scenario.isNew
"
type="text"
class="ml-[8px]"
@click="checkReport"

View File

@ -249,6 +249,7 @@
activeScenarioTab.value.executeFakeErrorCount = 0;
activeScenarioTab.value.stepResponses = {};
activeScenarioTab.value.reportId = executeParams.reportId; // ID
activeScenarioTab.value.executeType = executeType; // ID
debugSocket(activeScenarioTab.value, executeType); // websocket
activeScenarioTab.value.isDebug = !isExecute;
let res;