fix: handle empty host when setup step finishes (#147)

* fix: handle empty host when setup step finishes

* chore: update release notes
This commit is contained in:
silenceqi 2025-02-18 14:40:01 +08:00 committed by GitHub
parent 3f7c32d4de
commit a092dd7cb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -14,6 +14,7 @@ title: "版本历史"
### Bug fix
- 修复指标数据为空时的查询错误 (#144)
- 修复初始化结束步骤中主机显示为错误的问题 (#147)
### Improvements
## 1.28.2 (2025-02-15)

View File

@ -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,