routes response refactoring

This commit is contained in:
Čarodej
2022-05-16 14:14:48 +02:00
parent f66982b3ec
commit e87e2ec4e3
85 changed files with 534 additions and 316 deletions
@@ -277,7 +277,7 @@ export default {
axios
.get(`/api/share/${this.shareOptions.token}/qr`)
.then((response) => {
this.qrCode = response.data
this.qrCode = response.data.data.svg
})
.catch(() => this.$isSomethingWrong())
},
+2 -2
View File
@@ -61,8 +61,8 @@ const actions = {
axios
.get(`/api/socialite/${provider}/redirect`)
.then((response) => {
if (response.data.url) {
window.location.href = response.data.url
if (response.data.data.url) {
window.location.href = response.data.data.url
}
})
.catch(() => this.$isSomethingWrong())
+1 -1
View File
@@ -320,7 +320,7 @@ export default {
.catch((error) => {
if (error.response.status == 404) {
this.$refs.log_in.setErrors({
'E-Mail': [error.response.data],
'E-Mail': [error.response.data.message],
})
}