diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 1e14b025b1..b5f4e05cf4 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -237,8 +237,14 @@ @@ -539,6 +545,9 @@ export default { setCookieShare(cookie) { this.enableCookieShare = cookie; }, + setSampleError(sampleError) { + this.onSampleError = sampleError; + }, showAllBtn() { this.$refs.maximizeScenario.showAll(); }, diff --git a/frontend/src/business/components/api/automation/scenario/maximize/ScenarioHeader.vue b/frontend/src/business/components/api/automation/scenario/maximize/ScenarioHeader.vue index 91229fe25c..7734c6a8bc 100644 --- a/frontend/src/business/components/api/automation/scenario/maximize/ScenarioHeader.vue +++ b/frontend/src/business/components/api/automation/scenario/maximize/ScenarioHeader.vue @@ -18,12 +18,16 @@
- 共享cookie + 共享cookie + 失败继续 + - - - {{$t('api_test.request.debug')}} + {{ $t('api_test.request.debug') }} + @@ -39,7 +43,8 @@ import html2canvas from 'html2canvas'; export default { name: "ScenarioHeader", components: {EnvPopover}, - props: {currentScenario: {}, scenarioDefinition: Array, enableCookieShare: Boolean, + props: { + currentScenario: {}, scenarioDefinition: Array, enableCookieShare: Boolean, onSampleError: Boolean, projectEnvMap: Map, projectIds: Set, projectList: Array, @@ -51,6 +56,7 @@ import html2canvas from 'html2canvas'; loading: false, varSize: 0, cookieShare: false, + sampleError: true, envResult: { loading: false } @@ -65,6 +71,7 @@ import html2canvas from 'html2canvas'; this.envMap = this.projectEnvMap; this.getVariableSize(); this.cookieShare = this.enableCookieShare; + this.sampleError = this.onSampleError; }, methods: { handleExport() { @@ -94,6 +101,9 @@ import html2canvas from 'html2canvas'; setCookieShare() { this.$emit('setCookieShare', this.cookieShare); }, + setOnSampleError() { + this.$emit('setSampleError', this.sampleError); + }, showScenarioParameters() { this.$emit('showScenarioParameters'); }, @@ -159,7 +169,7 @@ import html2canvas from 'html2canvas'; .ms-header-right { float: right; - width: 380px; + width: 500px; margin-top: 4px; z-index: 1; }