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);