From 843a8dd1fc236dff0614529905ade0b7fdfbd889 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Mon, 9 Nov 2020 18:25:19 +0100 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4"=E6=90=9C=E7=B4=A2=E6=89=80?= =?UTF-8?q?=E6=9C=89=E8=B5=84=E6=BA=90"=E5=BC=80=E5=85=B3,=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8F=98=E6=80=BB=E6=98=AF=E6=90=9C=E7=B4=A2=E6=89=80?= =?UTF-8?q?=E6=9C=89=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 28 ++++++++----------------- src/components/Recommendation.vue | 35 ++++++++++++++++++++++++------- src/components/Setting.vue | 10 --------- src/lib/dexie/dexie.js | 2 +- src/lib/dexie/initData.js | 1 - 5 files changed, 37 insertions(+), 39 deletions(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index e14d8f6..9f5909e 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -140,9 +140,7 @@ prop="name" label="片名"> - @@ -299,17 +297,13 @@ export default { siteClick (siteName) { this.list = [] this.site = this.sites.find(x => x.name === siteName) - this.show.site = false - if (this.searchTxt.length > 0) { - this.searchSingleSiteEvent(this.site, this.searchTxt) - } else { - this.classList = [] - this.type = {} - this.getClass().then(res => { - this.infiniteId += 1 - this.classClick(this.classList[0].name) - }) - } + this.classList = [] + this.type = {} + this.searchTxt = '' + this.getClass().then(res => { + this.infiniteId += 1 + this.classClick(this.classList[0].name) + }) }, classClick (className) { this.show.classList = false @@ -504,11 +498,7 @@ export default { }) }, searchEvent (wd) { - if (this.setting.searchAllSites) { - this.searchAllSitesEvent(this.sites, wd) - } else { - this.searchSingleSiteEvent(this.site, wd) - } + this.searchAllSitesEvent(this.sites, wd) }, searchAllSitesEvent (sites, wd) { this.searchTxt = wd diff --git a/src/components/Recommendation.vue b/src/components/Recommendation.vue index 029b42c..74a3e27 100644 --- a/src/components/Recommendation.vue +++ b/src/components/Recommendation.vue @@ -29,7 +29,7 @@ 更新推荐 -
+
+ header-align="right" + align="right">