diff --git a/layouts/default.vue b/layouts/default.vue
index 6e80c3e5..5d18791f 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -4,13 +4,7 @@
-
-
-
-
+
@@ -34,25 +28,9 @@ export default {
link: [{ rel: 'icon', type: 'image/png', href: this.settings.baseurl + '/logo.png' }],
}
},
- // async fetch () {
- // if (this.$route.name && ['tag-tag', 'index', 'g-collection', 'p-place'].includes(this.$route.name)) {
- // this.collections = await this.$axios.$get('collections').catch(_e => [])
- // } else {
- // this.collections = []
- // }
- // },
name: 'Default',
components: { Appbar, Snackbar, Footer, Confirm },
- computed: {
- ...mapState(['settings']),
- // showBack () {
- // return ['tag-tag', 'collection-collection', 'place-place', 'search', 'announcement-id'].includes(this.$route.name)
- // },
- // showCollections () {
- // if (!this.collections || this.collections.length === 0) return false
- // return ['tag-tag', 'index', 'g-collection', 'p-place'].includes(this.$route.name)
- // }
- },
+ computed: mapState(['settings']),
created () {
this.$vuetify.theme.dark = this.settings['theme.is_dark']
}