mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-13 03:40:27 +08:00
迁移后确认API节点界面可以跳转到安装界面
This commit is contained in:
@@ -26,10 +26,14 @@ func (this *IndexAction) RunGet(params struct{}) {
|
|||||||
config, err := configs.LoadAPIConfig()
|
config, err := configs.LoadAPIConfig()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
endpoints = config.RPC.Endpoints
|
endpoints = config.RPC.Endpoints
|
||||||
}
|
|
||||||
|
|
||||||
this.Data["nodeId"] = config.NodeId
|
this.Data["nodeId"] = config.NodeId
|
||||||
this.Data["secret"] = config.Secret
|
this.Data["secret"] = config.Secret
|
||||||
|
this.Data["canInstall"] = false
|
||||||
|
} else {
|
||||||
|
this.Data["nodeId"] = ""
|
||||||
|
this.Data["secret"] = ""
|
||||||
|
this.Data["canInstall"] = true
|
||||||
|
}
|
||||||
|
|
||||||
if len(endpoints) == 0 {
|
if len(endpoints) == 0 {
|
||||||
endpoints = []string{""} // 初始化一个空的
|
endpoints = []string{""} // 初始化一个空的
|
||||||
|
|||||||
Reference in New Issue
Block a user