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

This commit is contained in:
刘祥超
2021-01-31 16:09:55 +08:00
parent 14636ed82f
commit 2ca31ffcb4
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