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:
parent
3f7c32d4de
commit
a092dd7cb1
|
@ -14,6 +14,7 @@ Information about release notes of INFINI Console is provided here.
|
||||||
|
|
||||||
### Bug fix
|
### Bug fix
|
||||||
- Fixed the error when querying empty metric data (#144)
|
- Fixed the error when querying empty metric data (#144)
|
||||||
|
- Fixed empty host when setup step finishes (#147)
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|
||||||
## 1.28.2 (2025-02-15)
|
## 1.28.2 (2025-02-15)
|
||||||
|
|
|
@ -14,6 +14,7 @@ title: "版本历史"
|
||||||
|
|
||||||
### Bug fix
|
### Bug fix
|
||||||
- 修复指标数据为空时的查询错误 (#144)
|
- 修复指标数据为空时的查询错误 (#144)
|
||||||
|
- 修复初始化结束步骤中主机显示为错误的问题 (#147)
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|
||||||
## 1.28.2 (2025-02-15)
|
## 1.28.2 (2025-02-15)
|
||||||
|
|
|
@ -13,14 +13,19 @@ export default ({ formData }) => {
|
||||||
username,
|
username,
|
||||||
password,
|
password,
|
||||||
isInit,
|
isInit,
|
||||||
|
hosts = [],
|
||||||
bootstrap_username,
|
bootstrap_username,
|
||||||
bootstrap_password,
|
bootstrap_password,
|
||||||
credential_secret,
|
credential_secret,
|
||||||
} = formData;
|
} = formData;
|
||||||
|
|
||||||
const onDownload = () => {
|
const onDownload = () => {
|
||||||
|
let hostV = host
|
||||||
|
if (!hostV && hosts.length > 0) {
|
||||||
|
hostV = hosts[0]
|
||||||
|
}
|
||||||
const data = {
|
const data = {
|
||||||
"Cluster": isTLS ? `https://${host}` : `http://${host}`,
|
"Cluster": isTLS ? `https://${hostV}` : `http://${hostV}`,
|
||||||
"Cluster Username": username,
|
"Cluster Username": username,
|
||||||
"Cluster Password": password,
|
"Cluster Password": password,
|
||||||
"Cluster Username": username,
|
"Cluster Username": username,
|
||||||
|
|
Loading…
Reference in New Issue