mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
routes response refactoring
This commit is contained in:
4
resources/js/store/modules/userAuth.js
vendored
4
resources/js/store/modules/userAuth.js
vendored
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user