From af0a480dcb29f01a856964f9f7d1613ea866c0bd Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 22 Aug 2022 15:04:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtest=E9=A1=B5=E9=9D=A2=E7=9A=84=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E7=BC=96=E8=BE=91=E5=A4=9A=E4=B8=AA=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016041 --user=王孝刚 【接口测试】接口定义 - TEST页面,选择环境下拉框 - 点开环境配置,变量名和类型后有个小圈 https://www.tapd.cn/55049933/s/1229274 --- .../definition/components/runtest/RunTestHTTPPage.vue | 5 ++++- .../api/definition/components/runtest/RunTestTCPPage.vue | 9 +++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue index 8aec8d87cb..fe5ff479fe 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue @@ -127,7 +127,6 @@ export default { rules: { method: [{required: true, message: this.$t('test_track.case.input_maintainer'), trigger: 'change'}], path: [{required: true, message: this.$t('api_test.definition.request.path_info'), trigger: 'blur'}], - environmentId: [{required: true, message: this.$t('api_test.definition.request.run_env'), trigger: 'change'}], }, runData: [], reportId: "", @@ -218,6 +217,10 @@ export default { } }, runTest() { + if (!this.api.environmentId) { + this.$warning(this.$t('api_test.environment.select_environment')); + return; + } this.$refs['apiData'].validate((valid) => { if (valid) { this.runLoading = true; diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue index 8ed0fa50df..5f8fd26c72 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue @@ -6,7 +6,7 @@ - + { if (valid) { this.runLoading = true;