From 35e298d4bafc878d11a2de02f18bfa9f0726bcc8 Mon Sep 17 00:00:00 2001 From: qdsordinarydream <66229105+qdsordinarydream@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:33:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8A=A8=E6=80=81=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=B8=BA=E5=8F=98=E9=87=8F=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=EF=BC=8C=E6=B2=A1=E5=8A=9E=E6=B3=95=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=20(#253)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dynamicRoute/customRoute/operations/CreateDuck.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/polaris/administration/dynamicRoute/customRoute/operations/CreateDuck.ts b/web/src/polaris/administration/dynamicRoute/customRoute/operations/CreateDuck.ts index fee11529..3c5733a0 100644 --- a/web/src/polaris/administration/dynamicRoute/customRoute/operations/CreateDuck.ts +++ b/web/src/polaris/administration/dynamicRoute/customRoute/operations/CreateDuck.ts @@ -407,7 +407,7 @@ const validator = Form.combineValidators({ if (!v && data.type === RoutingArgumentsType.CALLER_IP) { return '请输入IP' } - if (!v && data.type !== RoutingArgumentsType.CALLER_IP) { + if (!v && data.type !== RoutingArgumentsType.CALLER_IP && data.value_value_type !== RoutingValueType.PARAMETER) { return '请输入value值' } },