request-v2.ts 336 B

1234567891011121314
  1. // @ts-nocheck
  2. import request from './request'
  3. import {AxiosRequestConfig} from "axios";
  4. export interface AxiosRequestConfigV2 extends AxiosRequestConfig {
  5. showLoading?: boolean
  6. }
  7. const requestV2 = <D = any>(options: AxiosRequestConfigV2): Promise<D> => {
  8. // @ts-ignore
  9. return request(options)
  10. }
  11. export default requestV2