diff options
| author | 2024-09-10 04:38:50 +0800 | |
|---|---|---|
| committer | 2024-09-10 04:38:50 +0800 | |
| commit | 4536fceb61065acd7d0fe74eee98d293c682975f (patch) | |
| tree | 63eb01728b6717cfc3069bb5520805acec0e4d4e /src/utils/http.ts | |
| parent | 9ec3a2965c0e25f230b397a01c3c8b0543e61956 (diff) | |
| parent | 96bcab1d19d4e5b537437744cf1a4773a67d2e7c (diff) | |
| download | HydroRollSite-4536fceb61065acd7d0fe74eee98d293c682975f.tar.gz HydroRollSite-4536fceb61065acd7d0fe74eee98d293c682975f.zip | |
Merge pull request #6 from HydroRoll-Team/async-request
Async request
Diffstat (limited to 'src/utils/http.ts')
| -rw-r--r-- | src/utils/http.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/http.ts b/src/utils/http.ts new file mode 100644 index 0000000..d49fad4 --- /dev/null +++ b/src/utils/http.ts @@ -0,0 +1,9 @@ +import axios from "axios"; + +const serviceAxios = axios.create({ + baseURL: "", + timeout: 3 * 1000, + withCredentials: false, +}); + +export default serviceAxios;
\ No newline at end of file |
