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