()
| 20 | |
| 21 | // 生成唯一 ID |
| 22 | function generateId(): string { |
| 23 | return Date.now().toString(36) + Math.random().toString(36).slice(2, 9) |
| 24 | } |
| 25 | |
| 26 | // 读取 File 对象为 base64 |
| 27 | function readFileAsBase64(file: File): Promise<string> { |
no outgoing calls
no test coverage detected