( url: string, body?: any, )
| 102 | * 便捷 POST |
| 103 | */ |
| 104 | export async function apiPost<T = ApiResp>( |
| 105 | url: string, |
| 106 | body?: any, |
| 107 | ): Promise<T> { |
| 108 | const res = await instance.post<T>(url, body); |
| 109 | return res.data; |
| 110 | } |
| 111 | |
| 112 | export default instance; |
no outgoing calls
no test coverage detected