Explorar el Código

feat(api): update api 7

gemercheung hace 3 años
padre
commit
3479b680a0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/utils/http/axios/index.ts

+ 3 - 0
src/utils/http/axios/index.ts

@@ -81,6 +81,9 @@ const transform: AxiosTransform = {
         userStore.setToken(undefined);
         userStore.logout(true);
         break;
+      case ResultEnum.JAVA_ERROR:
+        timeoutMsg = t('sys.api.errMsg500');
+        break;
       default:
         if (message) {
           timeoutMsg = message;