Merge branch 'phatt' into feat/overhaul-storage
This commit is contained in:
commit
a0e0114fdb
1 changed files with 1 additions and 2 deletions
|
|
@ -2,8 +2,6 @@ import axios from 'axios'
|
||||||
import { getToken } from './KeyCloakService'
|
import { getToken } from './KeyCloakService'
|
||||||
import { useErrorStore } from '@/stores/error'
|
import { useErrorStore } from '@/stores/error'
|
||||||
|
|
||||||
const error = useErrorStore()
|
|
||||||
|
|
||||||
const instance = axios.create()
|
const instance = axios.create()
|
||||||
|
|
||||||
instance.interceptors.request.use(async (config) => {
|
instance.interceptors.request.use(async (config) => {
|
||||||
|
|
@ -14,6 +12,7 @@ instance.interceptors.request.use(async (config) => {
|
||||||
instance.interceptors.response.use(
|
instance.interceptors.response.use(
|
||||||
(res) => res,
|
(res) => res,
|
||||||
(err) => {
|
(err) => {
|
||||||
|
const error = useErrorStore()
|
||||||
const status = err.response.status
|
const status = err.response.status
|
||||||
const data = err.response.data
|
const data = err.response.data
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue