mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
routes response refactoring
This commit is contained in:
@@ -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
@@ -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())
|
||||
|
||||
@@ -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],
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user