mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +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
|
||||
.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]
|
||||
|
||||
Reference in New Issue
Block a user