feat(ai-avatar): 封面预览实时标题叠加 + getRenderJob 60s 超时
This commit is contained in:
@@ -85,7 +85,8 @@ export const submitRender = async (data: {
|
||||
}
|
||||
|
||||
export const getRenderJob = async (jobId: string): Promise<RenderJob> => {
|
||||
const response = await apiClient.get<RenderJob>(`/ai-avatar/render/${jobId}`)
|
||||
// 渲染任务走多步 ffmpeg 合成,可能耗时较久,轮询超时设 60s
|
||||
const response = await apiClient.get<RenderJob>(`/ai-avatar/render/${jobId}`, { timeout: 60000 })
|
||||
return response.data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user