Explorar o código

add timeout error message

vbea %!s(int64=2) %!d(string=hai) anos
pai
achega
187945b17f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Strides-APP/app/api/http.js

+ 1 - 0
Strides-APP/app/api/http.js

@@ -11,6 +11,7 @@ export const host = hostUrl;
 const DEBUG = app.debug && !app.product;
 
 Axios.defaults.timeout = 30000;
+Axios.defaults.timeoutErrorMessage = "Connection timeout, please check your network.";
 Axios.interceptors.response.use((response) => {
   if (DEBUG) {
     console.log('-------', response.config.method, response.config.url);