From 6dbb64a4f2e019a49539667d013cc80b5d749366 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Mon, 30 Nov 2020 23:54:20 +0100 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index 5eda83d..de0e9eb 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -417,17 +417,15 @@ export default { siteClick (siteName) { this.list = [] this.site = this.sites.find(x => x.name === siteName) - if (this.searchTxt.length > 0 && this.searchGroup === '站内') { - this.searchEvent() - } else { - this.searchTxt = '' - this.show.find = false - this.classList = [] - this.type = {} - this.getClass().then(res => { - this.classClick(this.classList[0].name) - }) - } + this.searchTxt = '' + this.show.find = false + this.classList = [] + this.type = {} + this.getClass().then(res => { + this.classList = res + this.show.class = true + this.classClick(this.classList[0].name) + }) }, classClick (className) { this.show.classList = false @@ -457,9 +455,7 @@ export default { } } }) - this.classList = allClass - this.show.class = true - resolve(true) + resolve(allClass) }).catch(err => { reject(err) })