diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 5960f2c..51f0d14 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -39,7 +39,7 @@ v-model="scope.row.isActive" :active-value="1" :inactive-value="0" - @change='isActiveChangeEvent'> + @change='isActiveChangeEvent(scope.row)'> diff --git a/src/components/Film.vue b/src/components/Film.vue index f9ffecd..54a68cf 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -264,9 +264,6 @@ export default { setting () { return this.$store.getters.getSetting }, - sitesList () { - return this.$store.getters.getEditSites.sites // 需要监听的数据 - }, filterSettings () { return this.$store.getters.getSetting.excludeR18Films // 需要监听的数据 } @@ -284,9 +281,6 @@ export default { searchTxt () { this.searchChangeEvent() }, - sitesList () { - this.getAllsites() - }, filterSettings () { this.siteClick(this.site) } @@ -484,6 +478,7 @@ export default { }, changeView () { if (this.view === 'Film') { + this.getAllsites() if (this.setting.view === 'picture') { this.$refs.filmWaterfall.refresh() this.getPage().then(() => { @@ -589,6 +584,7 @@ export default { } }, created () { + this.getAllsites() this.getAllSearch() } }