submit
This commit is contained in:
parent
db57ea4bc5
commit
0377ab7775
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user