diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 51f0d14..094fab1 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -159,14 +159,6 @@ export default { this.SET_SETTING(val) } }, - editSites: { - get () { - return this.$store.getters.getEditSites - }, - set (val) { - this.SET_EDITSITES(val) - } - }, getFilters () { const groups = [...new Set(this.sites.map(site => site.group))] var filters = [] @@ -181,7 +173,7 @@ export default { } }, methods: { - ...mapMutations(['SET_SETTING', 'SET_EDITSITES']), + ...mapMutations(['SET_SETTING']), excludeR18FilmsChangeEvent () { setting.find().then(res => { res.excludeR18Films = this.setting.excludeR18Films @@ -209,9 +201,6 @@ export default { getSites () { sites.all().then(res => { this.sites = res - this.editSites = { - sites: res - } }) }, getSitesGroup () { diff --git a/src/components/Setting.vue b/src/components/Setting.vue index 4c7b75b..6882fd8 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -174,7 +174,6 @@ export default { data () { return { pkg: pkg, - sitesList: [], shortcutList: [], show: { site: false, @@ -206,18 +205,10 @@ export default { set (val) { this.SET_SETTING(val) } - }, - editSites: { - get () { - return this.$store.getters.getEditSites - }, - set (val) { - this.SET_EDITSITES(val) - } } }, methods: { - ...mapMutations(['SET_SETTING', 'SET_VIEW', 'SET_EDITSITES']), + ...mapMutations(['SET_SETTING', 'SET_VIEW']), linkOpen (e) { shell.openExternal(e) }, @@ -232,11 +223,6 @@ export default { if (res.length <= 0) { this.$message.warning('检测到视频源未能正常加载, 即将重置源.') sites.clear().then(sites.bulkAdd(defaultSites).then(this.getSites())) - } else { - this.sitesList = res - this.editSites = { - sites: res - } } }) },