选择线路的时候关键词可以搜索域名

This commit is contained in:
GoEdgeLab
2021-10-12 08:41:02 +08:00
parent ccef060e14
commit 1dbf72ea5b

View File

@@ -80,7 +80,7 @@ Vue.component("dns-route-selector", {
return return
} }
this.searchingRoutes = this.vAllRoutes.filter(function (route) { this.searchingRoutes = this.vAllRoutes.filter(function (route) {
return teaweb.match(route.name, keyword) return teaweb.match(route.name, keyword) || teaweb.match(route.domainName, keyword)
}) })
if (this.searchingRoutes.length > 0) { if (this.searchingRoutes.length > 0) {
this.routeCode = this.searchingRoutes[0].code + "@" + this.searchingRoutes[0].domainId this.routeCode = this.searchingRoutes[0].code + "@" + this.searchingRoutes[0].domainId