From 63a1449c424b4e951a8237a0debad0723044041e Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Fri, 29 Nov 2024 17:13:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B0=83=E8=AF=95=E6=8E=A5=E5=8F=A3=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E7=8E=AF=E5=A2=83=E4=B8=BAnull=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1035027 --user=王旭 【接口测试】github#28622,tcp 后置脚本打印环境id值是null, http接口可以打印出来 https://www.tapd.cn/55049933/s/1621265 --- .../business/definition/components/debug/DebugDubboPage.vue | 4 +++- .../business/definition/components/debug/DebugHttpPage.vue | 4 +++- .../src/business/definition/components/debug/DebugTcpPage.vue | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/debug/DebugDubboPage.vue b/api-test/frontend/src/business/definition/components/debug/DebugDubboPage.vue index 2243201fc8..8185ab6aa8 100644 --- a/api-test/frontend/src/business/definition/components/debug/DebugDubboPage.vue +++ b/api-test/frontend/src/business/definition/components/debug/DebugDubboPage.vue @@ -80,7 +80,8 @@ import MsApiCaseList from '../case/EditApiCase'; import { TYPE_TO_C } from '@/business/automation/scenario/Setting'; import { mergeRequestDocumentData } from '@/business/definition/api-definition'; import { execStop } from '@/api/scenario'; - +import {useApiStore} from "@/store"; +const store = useApiStore(); export default { name: 'ApiConfig', components: { @@ -155,6 +156,7 @@ export default { this.loading = true; this.isStop = true; this.request.name = getUUID().substring(0, 8); + this.request.useEnvironment = store.useEnvironment; this.runData = []; this.runData.push(this.request); /*触发执行操作*/ diff --git a/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue b/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue index c4cfeb0161..aa88e8d03c 100644 --- a/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue +++ b/api-test/frontend/src/business/definition/components/debug/DebugHttpPage.vue @@ -106,7 +106,8 @@ import MsApiCaseList from '../case/EditApiCase'; import { TYPE_TO_C } from '@/business/automation/scenario/Setting'; import { mergeRequestDocumentData } from '@/business/definition/api-definition'; import { execStop } from '@/api/scenario'; - +import {useApiStore} from "@/store"; +const store = useApiStore(); export default { name: 'DebugHttpPage', components: { @@ -190,6 +191,7 @@ export default { this.isStop = true; this.request.url = this.debugForm.url; this.request.method = this.debugForm.method; + this.request.useEnvironment = store.useEnvironment; this.request.name = getUUID().substring(0, 8); this.runData = []; this.runData.push(this.request); diff --git a/api-test/frontend/src/business/definition/components/debug/DebugTcpPage.vue b/api-test/frontend/src/business/definition/components/debug/DebugTcpPage.vue index ca14f2eb59..302b89732e 100644 --- a/api-test/frontend/src/business/definition/components/debug/DebugTcpPage.vue +++ b/api-test/frontend/src/business/definition/components/debug/DebugTcpPage.vue @@ -85,7 +85,8 @@ import MsApiCaseList from '../case/EditApiCase'; import { TYPE_TO_C } from '@/business/automation/scenario/Setting'; import { mergeRequestDocumentData } from '@/business/definition/api-definition'; import { execStop } from '@/api/scenario'; - +import {useApiStore} from "@/store"; +const store = useApiStore(); export default { name: 'ApiConfig', components: { @@ -162,6 +163,7 @@ export default { this.isStop = true; this.request.name = getUUID().substring(0, 8); this.runData = []; + this.request.useEnvironment = store.useEnvironment; this.runData.push(this.request); /*触发执行操作*/ this.reportId = getUUID().substring(0, 8);