This commit is contained in:
lesion 2022-07-18 12:02:55 +02:00
parent 92c676622d
commit 16e508b213
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 3 additions and 5 deletions

View file

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

View file

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

View file

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