submit
This commit is contained in:
parent
db57ea4bc5
commit
0377ab7775
@ -1,3 +1,5 @@
|
|||||||
|
import {config} from "@/tmui/components/tm-message/interface";
|
||||||
|
|
||||||
type HttpMethod =
|
type HttpMethod =
|
||||||
| "GET"
|
| "GET"
|
||||||
| 'get'
|
| 'get'
|
||||||
@ -29,8 +31,8 @@ interface RequestOptions {
|
|||||||
type RequestInterceptor = (config: RequestOptions) => RequestOptions;
|
type RequestInterceptor = (config: RequestOptions) => RequestOptions;
|
||||||
type ResponseInterceptor = (response: any) => any;
|
type ResponseInterceptor = (response: any) => any;
|
||||||
interface Interceptors {
|
interface Interceptors {
|
||||||
request:(config: RequestOptions)=>{},
|
request: (config: RequestOptions) => RequestOptions;
|
||||||
response:(response:any)=>{}
|
response: (response: any) => any;
|
||||||
}
|
}
|
||||||
class uniFetch {
|
class uniFetch {
|
||||||
baseUrl: string;
|
baseUrl: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user