This commit is contained in:
xuziqiang
2024-05-15 17:29:42 +08:00
commit d0155dbe3c
7296 changed files with 1832517 additions and 0 deletions

10
lib/util/http/index.ts Normal file
View File

@@ -0,0 +1,10 @@
import { NSAxios } from './axios';
function createHttp() {
return new NSAxios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
withCredentials: false,
timeout: 3 * 1000,
});
}
export const http = createHttp();