添加了拦截器
This commit is contained in:
10
src/api/index.ts
Normal file
10
src/api/index.ts
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user