mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-21 06:18:45 +02:00
fixed test
This commit is contained in:
@@ -3,7 +3,6 @@ import Cookies from 'js-cookie'
|
||||
|
||||
import router from '../router'
|
||||
import store from '../store'
|
||||
import app from '../App.vue'
|
||||
|
||||
const _axios = axios.create()
|
||||
|
||||
@@ -33,7 +32,7 @@ _axios.interceptors.response.use(
|
||||
return Promise.reject(error)
|
||||
}
|
||||
if (error.response.status === 429) {
|
||||
app.showNotification()
|
||||
store.showNotification()
|
||||
return Promise.reject(error)
|
||||
}
|
||||
if (error.response.status !== 401 || router.currentRoute.path === '/login/') {
|
||||
|
||||
Reference in New Issue
Block a user