添加了拦截器

This commit is contained in:
2020-09-24 15:33:12 +08:00
parent 4fbf1353da
commit ed42b204d7
8 changed files with 42 additions and 13 deletions

10
src/api/index.ts Normal file
View File

@@ -0,0 +1,10 @@
import { get, post } from './base'
import { AxiosPromise } from 'axios'
export function getinfo(): Promise<AxiosPromise>{
return get("a")
}
export function seninfo(data: object | undefined): Promise<AxiosPromise>{
return post("b",data)
}