From b841552dc77c018a95920497e696fb6516880f9e Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Wed, 19 Aug 2020 18:07:37 +0200 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E7=A7=BB"=E6=90=9C=E7=B4=A2=E6=89=80?= =?UTF-8?q?=E6=9C=89=E8=B5=84=E6=BA=90"=E5=88=B0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 8 ++------ src/components/Setting.vue | 10 +++++++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index 24c4491..a5bc69d 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -26,9 +26,6 @@ -
- 搜索所有资源 -
@@ -138,8 +135,7 @@ export default { infiniteId: +new Date(), searchList: [], searchTxt: '', - searchContents: [], - searchAllSites: false + searchContents: [] } }, components: { @@ -427,7 +423,7 @@ export default { }, searchEvent (wd) { var sites = [] - if (this.searchAllSites) { + if (this.setting.searchAllSites) { sites.push(...this.sites) } else { sites.push(this.site) diff --git a/src/components/Setting.vue b/src/components/Setting.vue index fbd819b..250d847 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -66,6 +66,12 @@
+
+
搜索
+
+ 搜索所有资源 +
+
主题
@@ -135,6 +141,7 @@ export default { site: '', theme: '', shortcut: true, + searchAllSites: true, view: 'picture' } } @@ -161,7 +168,8 @@ export default { site: res.site, theme: res.theme, shortcut: res.shortcut, - view: res.view + view: res.view, + searchAllSites: res.searchAllSites } this.setting = this.d })