diff --git a/docs/content.en/docs/release-notes/_index.md b/docs/content.en/docs/release-notes/_index.md index 4a86980e..95013401 100644 --- a/docs/content.en/docs/release-notes/_index.md +++ b/docs/content.en/docs/release-notes/_index.md @@ -14,6 +14,7 @@ Information about release notes of INFINI Console is provided here. ### Bug fix - Fixed the error when querying empty metric data (#144) +- Fixed empty host when setup step finishes (#147) ### Improvements ## 1.28.2 (2025-02-15) diff --git a/docs/content.zh/docs/release-notes/_index.md b/docs/content.zh/docs/release-notes/_index.md index 639d9b98..11af2ec1 100644 --- a/docs/content.zh/docs/release-notes/_index.md +++ b/docs/content.zh/docs/release-notes/_index.md @@ -14,6 +14,7 @@ title: "版本历史" ### Bug fix - 修复指标数据为空时的查询错误 (#144) +- 修复初始化结束步骤中主机显示为错误的问题 (#147) ### Improvements ## 1.28.2 (2025-02-15) diff --git a/web/src/pages/Guide/Initialization/components/Finish/index.js b/web/src/pages/Guide/Initialization/components/Finish/index.js index 558f50b3..f819c40a 100644 --- a/web/src/pages/Guide/Initialization/components/Finish/index.js +++ b/web/src/pages/Guide/Initialization/components/Finish/index.js @@ -13,14 +13,19 @@ export default ({ formData }) => { username, password, isInit, + hosts = [], bootstrap_username, bootstrap_password, credential_secret, } = formData; const onDownload = () => { + let hostV = host + if (!hostV && hosts.length > 0) { + hostV = hosts[0] + } const data = { - "Cluster": isTLS ? `https://${host}` : `http://${host}`, + "Cluster": isTLS ? `https://${hostV}` : `http://${hostV}`, "Cluster Username": username, "Cluster Password": password, "Cluster Username": username,