切换源的时候无需隐藏再显示类型列表

This commit is contained in:
haiyangcui
2020-11-05 23:47:57 +01:00
committed by buvta
parent bbe0d157f4
commit 8a72b30f79

View File

@@ -293,14 +293,12 @@ export default {
this.list = []
this.site = this.sites.find(x => x.name === siteName)
this.show.site = false
this.show.class = false
if (this.searchTxt.length > 0) {
this.searchSingleSiteEvent(this.site, this.searchTxt)
} else {
this.classList = []
this.type = {}
this.getClass().then(res => {
this.show.class = true
this.infiniteId += 1
this.classClick(this.classList[0].name)
})