From a24b04867f2c5cc30770cd63beed90a4bb63cb38 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 28 Feb 2022 17:55:46 +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=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=BF=9D=E5=AD=98=E5=A4=B1=E6=95=88=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010689 --user=王孝刚 【接口测试】github#11051,接口用例环境保存失效 https://www.tapd.cn/55049933/s/1111109 --- .../components/api/definition/components/case/ApiCaseItem.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index d02523817b..5c9ee44c8d 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -413,6 +413,7 @@ export default { let bodyFiles = this.getBodyUploadFiles(tmp); tmp.projectId = getCurrentProjectID(); tmp.active = true; + tmp.request.useEnvironment = this.environment; tmp.apiDefinitionId = tmp.apiDefinitionId || this.api.id; let url = "/api/testcase/create"; if (tmp.id) {