( url: string, config?: AxiosRequestConfig )
| 133 | |
| 134 | // 封装 GET 请求 |
| 135 | export const get = async <T = unknown>( |
| 136 | url: string, |
| 137 | config?: AxiosRequestConfig |
| 138 | ): Promise<T> => { |
| 139 | const response = await request.get<T>(url, config) |
| 140 | return response.data |
| 141 | } |
| 142 | |
| 143 | // 封装 POST 请求 |
| 144 | export const post = async <T = unknown>( |
no outgoing calls
no test coverage detected