fixed test

This commit is contained in:
Spitap
2023-02-08 14:08:16 +01:00
parent 8c0fb3d4ff
commit b79dffada8
10 changed files with 21 additions and 29 deletions
+1 -2
View File
@@ -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/') {