mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
[Calendar] Add-time-modal only for logged user
This commit is contained in:
1 parent
bf67f853e3
commit
b4343dc241
3 files changed
+8
-3
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import axios from '@/plugins/w/axios/models/axios'
|
||||
// import './refreshExpired'
|
||||
import './refreshExpired'
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
|
||||
@@ -3,7 +3,10 @@ import axios from 'axios'
|
||||
import store from '@/store'
|
||||
|
||||
async function _unauthorised(error: any) {
|
||||
return store.dispatch('auth/logout')
|
||||
if (error?.response?.data?.message == 'Unauthenticated.')
|
||||
return store.dispatch('auth/logout')
|
||||
|
||||
return error
|
||||
}
|
||||
|
||||
axios.interceptors.response.use(
|
||||
|
||||
Reference in new issue
Block a user