mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-08 13:13:36 +08:00
优化分组搜索
This commit is contained in:
@@ -334,6 +334,8 @@ export default {
|
||||
if (this.searchTxt.length > 0 && this.searchGroup === '站内') {
|
||||
this.searchEvent()
|
||||
} else {
|
||||
this.searchTxt = ''
|
||||
this.show.find = false
|
||||
this.classList = []
|
||||
this.type = {}
|
||||
this.getClass().then(res => {
|
||||
@@ -581,6 +583,7 @@ export default {
|
||||
this.searchContents = []
|
||||
this.pagecount = 0
|
||||
this.show.find = true
|
||||
this.show.class = false
|
||||
this.statusText = ' '
|
||||
if (wd) {
|
||||
searchSites.forEach(site => {
|
||||
@@ -648,6 +651,7 @@ export default {
|
||||
}
|
||||
}
|
||||
this.searchGroups = [...new Set(this.sites.map(site => site.group))]
|
||||
if (this.searchGroups.length === 1) this.searchGroups = []
|
||||
this.searchGroups.unshift('站内')
|
||||
this.searchGroups.push('全部')
|
||||
this.searchGroup = this.setting.searchGroup
|
||||
|
||||
Reference in New Issue
Block a user