From 279e1673e49daf3ecd85df7796a2171402a956a2 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 25 Mar 2024 14:57:32 +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=A7=92=E6=A0=87=E6=95=B0=E5=AD=97=E8=B6=85?= =?UTF-8?q?=E8=BF=8799=E4=B8=AA=E5=90=8E=E6=98=BE=E7=A4=BA99+?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【【接口测试】接口定义-调试,断言超过99个应该显示99+】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001037618 --- .../ms-common-script/insertCommonScript.vue | 2 +- .../components/requestComposition/index.vue | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/business/ms-common-script/insertCommonScript.vue b/frontend/src/components/business/ms-common-script/insertCommonScript.vue index e8d7012190..52d7dcf2d3 100644 --- a/frontend/src/components/business/ms-common-script/insertCommonScript.vue +++ b/frontend/src/components/business/ms-common-script/insertCommonScript.vue @@ -21,7 +21,7 @@ 0 ? restNum : ''}`; case RequestComposition.PRECONDITION: - return `${requestVModel.value.children[0].preProcessorConfig.processors.length || ''}`; + return `${ + requestVModel.value.children[0].preProcessorConfig.processors.length > 99 + ? '99+' + : requestVModel.value.children[0].preProcessorConfig.processors.length || '' + }`; case RequestComposition.POST_CONDITION: - return `${requestVModel.value.children[0].postProcessorConfig.processors.length || ''}`; + return `${ + requestVModel.value.children[0].postProcessorConfig.processors.length > 99 + ? '99+' + : requestVModel.value.children[0].postProcessorConfig.processors.length || '' + }`; case RequestComposition.ASSERTION: - return `${requestVModel.value.children[0].assertionConfig.assertions.length || ''}`; + return `${ + requestVModel.value.children[0].assertionConfig.assertions.length > 99 + ? '99+' + : requestVModel.value.children[0].assertionConfig.assertions.length || '' + }`; case RequestComposition.AUTH: return requestVModel.value.authConfig.authType !== RequestAuthType.NONE ? '1' : ''; default: