mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
logout bug fixed
This commit is contained in:
9
resources/js/store/modules/userAuth.js
vendored
9
resources/js/store/modules/userAuth.js
vendored
@@ -43,10 +43,15 @@ const actions = {
|
|||||||
|
|
||||||
axios
|
axios
|
||||||
.post('/logout')
|
.post('/logout')
|
||||||
.catch(() => this.$isSomethingWrong())
|
.catch((error) => {
|
||||||
|
if (error.response.status === 500) {
|
||||||
|
Vue.prototype.$isSomethingWrong()
|
||||||
|
}
|
||||||
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
clearTimeout(popup)
|
clearTimeout(popup)
|
||||||
|
|
||||||
|
commit('PROCESSING_POPUP', undefined)
|
||||||
commit('DESTROY_DATA')
|
commit('DESTROY_DATA')
|
||||||
commit('SET_AUTHORIZED', false)
|
commit('SET_AUTHORIZED', false)
|
||||||
|
|
||||||
@@ -65,7 +70,7 @@ const actions = {
|
|||||||
window.location.href = response.data.data.url
|
window.location.href = response.data.data.url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => this.$isSomethingWrong())
|
.catch(() => Vue.prototype.$isSomethingWrong())
|
||||||
},
|
},
|
||||||
addToFavourites: (context, folder) => {
|
addToFavourites: (context, folder) => {
|
||||||
let items = [folder]
|
let items = [folder]
|
||||||
|
|||||||
Reference in New Issue
Block a user