mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
[网站域名]在列表中可以查看网站域名列表,并可以筛选
This commit is contained in:
14
web/views/@default/servers/serverNamesPopup.js
Normal file
14
web/views/@default/servers/serverNamesPopup.js
Normal file
@@ -0,0 +1,14 @@
|
||||
Tea.context(function () {
|
||||
let allServerNames = this.serverNames.$copy();
|
||||
|
||||
this.keyword = ""
|
||||
|
||||
this.$delay(function () {
|
||||
let that = this
|
||||
this.$watch("keyword", function (keyword) {
|
||||
that.serverNames = allServerNames.$findAll(function (k, serverName) {
|
||||
return teaweb.match(serverName, keyword)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user