diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue index d04caef..8003390 100644 --- a/src/components/IPTV.vue +++ b/src/components/IPTV.vue @@ -3,7 +3,7 @@
-
添加新频道
+
添加
导出
@@ -14,6 +14,9 @@
重置
+
+
+
@@ -46,7 +49,7 @@
    -
  • +
  • {{i.name}} 播放 @@ -79,7 +82,8 @@ export default { { name: '', site: '' - } + }, + searchkeyword: '' } }, components: { @@ -117,6 +121,13 @@ export default { this.video = { info: { url: e.url } } this.view = 'Play' }, + containSearchKeyword (i) { + if (this.searchkeyword) { + return i.name.toLowerCase().includes(this.searchkeyword.toLowerCase()) + } else { + return true + } + }, removeEvent (e) { iptv.remove(e.id).then(res => { this.getAllSites()