liudong
2024-07-31 e8854aeed917f6461979b0ba35fc6c6fca2b849a
src/api/interceptor.ts
@@ -17,7 +17,7 @@
}
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(
@@ -41,7 +41,7 @@
      }
      config.headers.Authorization = `${authorization}`;
    }
    // config.headers.Authorization = 'ImI1ZjBiMTE4NGE5MDExZWZhODMxMDI0MmFjMTIwMDA2Ig.ZqJeng.mxAf4MaEIp_v6jiQqEe3B13xaNE';
    config.headers.Authorization = 'ImE4NGQ4ZWNjNGVmYjExZWZiZjRkMDI0MmFjMTIwMDA2Ig.ZqnIBw.ZX7_UxnSBKu8x_riQ5FrHLMAS78'
    return config;
  },
  (error) => {
@@ -75,7 +75,6 @@
          okText: 'Re-Login',
          async onOk() {
            const userStore = useUserStore();
            await userStore.logout();
            window.location.reload();
          },