From 0377ab77753863369473bc90521aa9b17afd80c7 Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Thu, 7 Dec 2023 11:12:06 +0800 Subject: [PATCH] submit --- src/http/main.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/http/main.ts b/src/http/main.ts index e0db8baf..7dff8bcd 100644 --- a/src/http/main.ts +++ b/src/http/main.ts @@ -1,3 +1,5 @@ +import {config} from "@/tmui/components/tm-message/interface"; + type HttpMethod = | "GET" | 'get' @@ -28,9 +30,9 @@ interface RequestOptions { } type RequestInterceptor = (config: RequestOptions) => RequestOptions; type ResponseInterceptor = (response: any) => any; -interface Interceptors{ - request:(config: RequestOptions)=>{}, - response:(response:any)=>{} +interface Interceptors { + request: (config: RequestOptions) => RequestOptions; + response: (response: any) => any; } class uniFetch { baseUrl: string;