From f493fcd24efbb9a5197c1f7efd7c3defab30048e Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Tue, 3 Nov 2020 17:06:05 +0100 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E7=A6=8F=E5=88=A9=E7=89=87ch?= =?UTF-8?q?eckbox=E5=8F=AF=E4=BB=A5=E7=9B=B4=E6=8E=A5=E5=85=B3=E8=81=94set?= =?UTF-8?q?ting.excludeR18Films?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditSites.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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() } }