优化分组搜索

This commit is contained in:
buvta
2020-11-09 21:35:22 +08:00
parent 2d7f012180
commit c8795e2aa9

View File

@@ -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