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/incubator-apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new ab93337  fix(Route): set required field for custom redirect
ab93337 is described below

commit ab933374af03016710a6dbd4c31bd7b46b6c3f3b
Author: juzhiyuan <[email protected]>
AuthorDate: Mon Jul 13 08:11:05 2020 +0800

    fix(Route): set required field for custom redirect
---
 src/pages/Route/components/Step1/RequestConfigView.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pages/Route/components/Step1/RequestConfigView.tsx 
b/src/pages/Route/components/Step1/RequestConfigView.tsx
index d9527af..655aa21 100644
--- a/src/pages/Route/components/Step1/RequestConfigView.tsx
+++ b/src/pages/Route/components/Step1/RequestConfigView.tsx
@@ -192,15 +192,15 @@ const RequestConfigView: React.FC<Props> = ({ data, 
disabled, onChange }) => {
         </Select>
       </Form.Item>
       {step1Data.redirectOption === 'customRedirect' && (
-        <Form.Item label="自定义重定向">
+        <Form.Item label="自定义重定向" required>
           <Row gutter={10}>
             <Col>
-              <Form.Item name="redirectURI">
+              <Form.Item name="redirectURI" rules={[{required: true}]}>
                 <Input placeholder="例如:/foo/index.html" disabled={disabled} />
               </Form.Item>
             </Col>
             <Col span={10}>
-              <Form.Item name="redirectCode">
+              <Form.Item name="redirectCode" rules={[{required: true}]}>
                 <Select disabled={disabled}>
                   <Select.Option value={301}>301(临时的重定向)</Select.Option>
                   <Select.Option value={302}>302(永久的重定向)</Select.Option>

Reply via email to