修复节点无法修改线路的Bug

This commit is contained in:
刘祥超
2021-08-07 16:11:04 +08:00
parent 06e81dbe37
commit d97f4da7fa

View File

@@ -44,9 +44,9 @@ Vue.component("dns-route-selector", {
this.isAdding = false this.isAdding = false
}, },
remove: function (route) { remove: function (route) {
this.routeCodes.$removeValue(route.code) this.routeCodes.$removeValue(route.code + "@" + route.domainId)
this.routes.$removeIf(function (k, v) { this.routes.$removeIf(function (k, v) {
return v.code == route.code return v.code + "@" + v.domainId == route.code + "@" + route.domainId
}) })
} }
}, },