chore: back fetch.ts
This commit is contained in:
parent
22fd08537a
commit
13ec1d4510
|
|
@ -43,13 +43,8 @@ const VERSION = getVersion()
|
|||
* 3. 注入 Authorization 和 CoStrict 特有 headers
|
||||
* 4. 反应性 401 错误恢复(自动重试一次)
|
||||
*/
|
||||
type CoStrictFetchFn = {
|
||||
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
|
||||
preconnect?: (url: string | URL) => void
|
||||
}
|
||||
|
||||
export function createCoStrictFetch() {
|
||||
const costrictFetch: CoStrictFetchFn = async (
|
||||
const costrictFetch = async (
|
||||
input: RequestInfo | URL,
|
||||
init?: RequestInit,
|
||||
) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user