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

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())