| | |
| | | } |
| | | |
| | | if (import.meta.env.VITE_API_BASE_URL) { |
| | | axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL; |
| | | // axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL; |
| | | } |
| | | axios.defaults.withCredentials = true; |
| | | axios.interceptors.request.use( |
| | |
| | | } |
| | | config.headers.Authorization = `${authorization}`; |
| | | } |
| | | // config.headers.Authorization = 'ImI1ZjBiMTE4NGE5MDExZWZhODMxMDI0MmFjMTIwMDA2Ig.ZqJeng.mxAf4MaEIp_v6jiQqEe3B13xaNE'; |
| | | config.headers.Authorization = 'ImE4NGQ4ZWNjNGVmYjExZWZiZjRkMDI0MmFjMTIwMDA2Ig.ZqnIBw.ZX7_UxnSBKu8x_riQ5FrHLMAS78' |
| | | return config; |
| | | }, |
| | | (error) => { |
| | |
| | | okText: 'Re-Login', |
| | | async onOk() { |
| | | const userStore = useUserStore(); |
| | | |
| | | await userStore.logout(); |
| | | window.location.reload(); |
| | | }, |