保誠-保戶業務員媒合平台
劉鈞霖
2021-12-15 8920cf32b364d6018da3a866e24e8d39e3b86087
PAMapp/assets/ts/api/share.ts
@@ -26,7 +26,7 @@
service.interceptors.response.use(
  (response: AxiosResponse) => {
    loadingFinish();
    return response.data;
    return response;
  },
  (error: AxiosError) => {
    loadingFinish();
@@ -54,7 +54,7 @@
  if (!_.includes(notRequireInterceptorErrorUrl, error.config.url)) {
    switch (error.response.status) {
      case 401:
        Promise.all([ErrorMessageBox('登入逾時'), window.$nuxt.$store.dispatch('localStorage/actionStorageClear')]).then(() => {
        Promise.all([ErrorMessageBox('登入逾時'),window.$nuxt.$store.dispatch('localStorage.service/clearStorage')]).then(()=>{
          _.isEqual(window.$nuxt.$route.name, 'index') ? location.reload() : window.$nuxt.$router.push('/');
        });
        break;