mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-27 21:06:35 +08:00
修复域名为空时点击审核页面为空的Bug
This commit is contained in:
@@ -37,6 +37,9 @@ func (this *IndexAction) RunGet(params struct {
|
||||
err = json.Unmarshal(serverNamesResp.ServerNamesJSON, &passedServerNameConfigs)
|
||||
if err == nil {
|
||||
passedDomains = serverconfigs.PlainServerNames(passedServerNameConfigs)
|
||||
if passedDomains == nil {
|
||||
passedDomains = []string{}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.Data["passedDomains"] = passedDomains
|
||||
|
||||
Reference in New Issue
Block a user