logout bug fixed

This commit is contained in:
Čarodej
2022-05-18 17:39:05 +02:00
parent 6bd1ec96bd
commit ab65aa8859

View File

@@ -43,10 +43,15 @@ const actions = {
axios
.post('/logout')
.catch(() => this.$isSomethingWrong())
.catch((error) => {
if (error.response.status === 500) {
Vue.prototype.$isSomethingWrong()
}
})
.finally(() => {
clearTimeout(popup)
commit('PROCESSING_POPUP', undefined)
commit('DESTROY_DATA')
commit('SET_AUTHORIZED', false)
@@ -65,7 +70,7 @@ const actions = {
window.location.href = response.data.data.url
}
})
.catch(() => this.$isSomethingWrong())
.catch(() => Vue.prototype.$isSomethingWrong())
},
addToFavourites: (context, folder) => {
let items = [folder]