(file: File)
| 40 | |
| 41 | // 文件上传 |
| 42 | async uploadFile(file: File) { |
| 43 | const formData = new FormData(); |
| 44 | formData.append('file', file); |
| 45 | const response = await upload<{ url: string }>('/api/upload', formData); |
| 46 | return response.data; |
| 47 | }, |
| 48 | }; |
| 49 | |
| 50 | // ================ 创建专用客户端 ================ |
nothing calls this directly
no outgoing calls
no test coverage detected