diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 6d5c37d..91d018c 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -2,6 +2,7 @@
> + 屏蔽福利片 新增 导出 导入 @@ -111,7 +112,7 @@ diff --git a/src/components/Film.vue b/src/components/Film.vue index 1f143f2..8a1a58b 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -252,6 +252,9 @@ export default { }, sitesList () { return this.$store.getters.getEditSites.sites // 需要监听的数据 + }, + filterSettings () { + return this.$store.getters.getSetting.excludeR18Films // 需要监听的数据 } }, filters: { @@ -269,6 +272,9 @@ export default { }, sitesList () { this.getAllsites() + }, + filterSettings () { + this.siteClick(this.site) } }, methods: { @@ -284,10 +290,9 @@ export default { this.classList = [] this.type = {} this.getClass().then(res => { - if (res) { - this.show.class = true - this.infiniteId += 1 - } + this.show.class = true + this.infiniteId += 1 + this.classClick(this.classList[0]) }) } }, @@ -464,10 +469,10 @@ export default { if (this.view === 'Film') { if (this.setting.view === 'picture') { this.$refs.filmWaterfall.refresh() + this.getPage().then(() => { + this.infiniteId += 1 + }) } - this.getPage().then(() => { - this.infiniteId += 1 - }) } }, getAllSearch () { diff --git a/src/components/Setting.vue b/src/components/Setting.vue index 2b77509..4c7b75b 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -87,9 +87,6 @@
屏蔽主分类
-
- 屏蔽福利片 -
@@ -270,10 +267,6 @@ export default { this.d.searchAllSites = !this.d.searchAllSites this.updateSettingEvent() }, - toggleExcludeR18Films () { - this.d.excludeR18Films = !this.d.excludeR18Films - this.updateSettingEvent() - }, toggleExcludeRootClasses () { this.d.excludeRootClasses = !this.d.excludeRootClasses this.updateSettingEvent() diff --git a/src/lib/element/index.js b/src/lib/element/index.js index ceacc31..8bf727b 100644 --- a/src/lib/element/index.js +++ b/src/lib/element/index.js @@ -1,5 +1,5 @@ import Vue from 'vue' -import { Message, Button, Table, TableColumn, Tag, Input, Dialog, Form, FormItem, Switch, Select, Option } from 'element-ui' +import { Message, Button, Table, TableColumn, Tag, Input, Dialog, Form, FormItem, Switch, Select, Option, Checkbox } from 'element-ui' import Plugin from 'v-fit-columns' Vue.use(Button) Vue.use(Table) @@ -13,4 +13,5 @@ Vue.use(Switch) Vue.use(Plugin) Vue.use(Select) Vue.use(Option) +Vue.use(Checkbox) Vue.prototype.$message = Message