Sfoglia il codice sorgente

APIレスポンスのログ出力に時刻を追加

develop
sosuke.iwabuchi 2 anni fa
parent
commit
1bddd6a740
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/api/index.ts

+ 1
- 1
src/api/index.ts Vedi File

@@ -178,7 +178,7 @@ export const request = async <T extends APICommonResponse>({
searchUrl += "?" + data.toString();
}
response = await axios.get<T>(searchUrl);
console.log("RESPONSE", searchUrl, method, response?.data);
console.log(new Date(), "RESPONSE", searchUrl, method, response?.data);
} else if (method === HttpMethod.POST) {
response = await axios.post<T>(url, data);



Loading…
Annulla
Salva