You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/04/15 01:44:02 UTC

[GitHub] [apisix-dashboard] guoqqqi commented on a diff in pull request #2347: feat: Merge path hostname input box

guoqqqi commented on code in PR #2347:
URL: https://github.com/apache/apisix-dashboard/pull/2347#discussion_r850980849


##########
web/src/pages/Upstream/Create.tsx:
##########
@@ -44,6 +44,15 @@ const Page: React.FC = (props) => {
           }
         }
 
+        if (newData?.checks?.active) {
+          const host = newData?.checks?.active.host;
+          const http_path = newData?.checks?.active.http_path;
+          const url = `${host}${http_path}`;
+          const { active: activeData } = newData.checks;
+          activeData.url = url;
+          newData.checks.active = omit(newData.checks.active, 'host');

Review Comment:
   cc @hanzhenfang PTAL



-- 
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-unsubscribe@apisix.apache.org

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