界面显示时增加默认线路值

This commit is contained in:
GoEdgeLab
2021-01-31 16:09:55 +08:00
parent 74f2e86f51
commit 69a060e276
2 changed files with 11 additions and 2 deletions

View File

@@ -89,6 +89,12 @@ func (this *NodeAction) RunGet(params struct {
})
}
}
if len(dnsRouteMaps) == 0 {
dnsRouteMaps = append(dnsRouteMaps, maps.Map{
"name": "",
"code": "",
})
}
this.Data["dnsRoutes"] = dnsRouteMaps
this.Data["dnsRecordName"] = recordName
this.Data["dnsRecordValue"] = recordValue