This commit is contained in:
lesion
2022-07-18 12:02:55 +02:00
parent 92c676622d
commit 16e508b213
3 changed files with 3 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ export default {
} }
}, },
async fetch () { async fetch () {
this.smtp = await this.$axios.$get('/settings/smtp') this.smtp = await this.$axios.$get('/settings/smtp').catch(_e => ({ auth: {} }))
}, },
computed: mapState(['settings']), computed: mapState(['settings']),
watch: { watch: {

View File

@@ -41,7 +41,7 @@ export default {
return { collections: [], mdiChevronLeft } return { collections: [], mdiChevronLeft }
}, },
async fetch () { async fetch () {
this.collections = await this.$axios.$get('collections') this.collections = await this.$axios.$get('collections').catch(_e => [])
}, },
name: 'Default', name: 'Default',
components: { Nav, Snackbar, Footer, Confirm }, components: { Nav, Snackbar, Footer, Confirm },

View File

@@ -51,9 +51,7 @@ export default {
valid: false valid: false
} }
}, },
computed: { computed: mapState(['settings']),
...mapState(['settings'])
},
methods: { methods: {
async forgot () { async forgot () {
if (!this.email) { if (!this.email) {