转移"搜索所有资源"到设置页面

This commit is contained in:
haiyangcui
2020-08-19 18:07:37 +02:00
parent 0a9b939dc3
commit b841552dc7
2 changed files with 11 additions and 7 deletions

View File

@@ -26,9 +26,6 @@
</ul>
</div>
</div>
<div class="zy-checkbox">
<input type="checkbox" v-model="searchAllSites" class="search-all-check-input" > 搜索所有资源
</div>
</div>
<div class="body zy-scroll" infinite-wrapper>
<div class="body-box" v-show="!show.find">
@@ -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)

View File

@@ -66,6 +66,12 @@
</div>
</div>
</div>
<div class='site'>
<div class="title">搜索</div>
<div class="zy-checkbox">
<input type="checkbox" v-model="setting.searchAllSites"> 搜索所有资源
</div>
</div>
<div class="theme">
<div class="title">主题</div>
<div class="theme-box">
@@ -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
})