From 0af02aef19a833f5a911449210e3d85f51d4452e Mon Sep 17 00:00:00 2001 From: litesun <7sunmiao@gmail.com> Date: Wed, 16 Sep 2020 09:41:48 +0800 Subject: [PATCH 1/2] fix: host should not be required --- src/pages/Route/components/Step1/RequestConfigView.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/Route/components/Step1/RequestConfigView.tsx b/src/pages/Route/components/Step1/RequestConfigView.tsx index 53e40130ef..6037adaeed 100644 --- a/src/pages/Route/components/Step1/RequestConfigView.tsx +++ b/src/pages/Route/components/Step1/RequestConfigView.tsx @@ -47,7 +47,6 @@ const RequestConfigView: React.FC = ({ data, disabled, onChange }) => { Date: Thu, 17 Sep 2020 09:20:24 +0800 Subject: [PATCH 2/2] feat: remove required rule --- src/pages/Route/components/Step1/RequestConfigView.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pages/Route/components/Step1/RequestConfigView.tsx b/src/pages/Route/components/Step1/RequestConfigView.tsx index 6037adaeed..93481a66c6 100644 --- a/src/pages/Route/components/Step1/RequestConfigView.tsx +++ b/src/pages/Route/components/Step1/RequestConfigView.tsx @@ -56,11 +56,6 @@ const RequestConfigView: React.FC = ({ data, disabled, onChange }) => { {...field} validateTrigger={['onChange', 'onBlur']} rules={[ - { - required: true, - whitespace: true, - message: formatMessage({ id: 'route.request.config.input.domain.name' }), - }, { pattern: new RegExp(/(^\*?[a-zA-Z0-9._-]+$|^\*$)/, 'g'), message: formatMessage({ id: 'route.request.config.domain.name.rule' }),