mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
修正因为没有选择线路而导致创建和修改节点的问题
This commit is contained in:
@@ -95,10 +95,12 @@ func (this *CreateNodeAction) RunPost(params struct {
|
||||
}
|
||||
|
||||
dnsRouteCodes := []string{}
|
||||
err := json.Unmarshal(params.DnsRoutesJSON, &dnsRouteCodes)
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
if len(params.DnsRoutesJSON) > 0 {
|
||||
err := json.Unmarshal(params.DnsRoutesJSON, &dnsRouteCodes)
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// TODO 检查登录授权
|
||||
|
||||
Reference in New Issue
Block a user