This is an automated email from the ASF dual-hosted git repository. juzhiyuan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push: new 5b24ece fix: host should not be required (#479) 5b24ece is described below commit 5b24ecec1ffa4df32bd635edfa0ef9da6ef01c4f Author: litesun <7sunm...@gmail.com> AuthorDate: Thu Sep 17 09:44:30 2020 +0800 fix: host should not be required (#479) * fix: host should not be required * 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 6037ada..93481a6 100644 --- a/src/pages/Route/components/Step1/RequestConfigView.tsx +++ b/src/pages/Route/components/Step1/RequestConfigView.tsx @@ -57,11 +57,6 @@ const RequestConfigView: React.FC<Props> = ({ data, disabled, onChange }) => { 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' }), },