SkyeYoung commented on code in PR #3076:
URL: https://github.com/apache/apisix-dashboard/pull/3076#discussion_r2099800852


##########
src/routes/routes/add.tsx:
##########
@@ -39,12 +39,15 @@ const RouteAddForm = () => {
 
   const postRoute = useMutation({
     mutationFn: (d: RoutePostType) => postRouteReq(req, pipeProduce()(d)),
-    async onSuccess() {
+    async onSuccess(res) {
       notifications.show({
         message: t('info.add.success', { name: t('routes.singular') }),
         color: 'green',
       });
-      await router.navigate({ to: '/routes' });
+      await router.navigate({
+        to: '/routes/detail/$id',
+        params: { id: res.data.value.id },
+      });

Review Comment:
   It was a mistake to jump to the list page earlier. I think it should jump to 
the detail page.



-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to