juzhiyuan commented on a change in pull request #1558:
URL: https://github.com/apache/apisix-dashboard/pull/1558#discussion_r596525633



##########
File path: web/config/routes.ts
##########
@@ -39,6 +39,10 @@ const routes = [
     path: '/routes/:rid/edit',
     component: './Route/Create',
   },
+  {
+    path: '/routes/:rid/duplicate',

Review comment:
       Do we need this path?

##########
File path: web/src/pages/Route/List.tsx
##########
@@ -387,6 +387,9 @@ const Page: React.FC = () => {
             }}>
               {formatMessage({ id: 'component.global.view' })}
             </Button>
+            <Button type="primary" onClick={() => 
history.push(`/routes/${record.id}/duplicate`)}>

Review comment:
       Could we fetch data first, then submit it directly by using `create` 
method?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to