diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 91d018c..f31e70d 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -2,7 +2,7 @@
> - 屏蔽福利片 + 屏蔽福利片 新增 导出 导入 @@ -153,8 +153,7 @@ export default { multipleSelection: [], tableKey: 1, checkAllSiteLoading: false, - editeOldkey: '', - excludeR18Films: true + editeOldkey: '' } }, computed: { @@ -191,9 +190,8 @@ export default { ...mapMutations(['SET_SETTING', 'SET_EDITSITES']), excludeR18FilmsChangeEvent () { setting.find().then(res => { - res.excludeR18Films = this.excludeR18Films + res.excludeR18Films = this.setting.excludeR18Films setting.update(res) - this.setting = res }) }, filterHandle (value, row) { @@ -466,11 +464,6 @@ export default { this.updateDatabase() this.tableKey = Math.random() this.checkAllSiteLoading = false - }, - getSettings () { - setting.find().then(res => { - this.excludeR18Films = res.excludeR18Films - }) } }, mounted () { @@ -479,7 +472,6 @@ export default { }, created () { this.getSites() - this.getSettings() } }