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 })