fix: increase createTask timeout to 60 seconds
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -45,7 +45,7 @@ export const getPlayInfo = async (bvid: string, cid: number, controller: AbortCo
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const createTask = async (tasks: TaskInitData[]): Promise<ResJSON> => {
|
export const createTask = async (tasks: TaskInitData[]): Promise<ResJSON> => {
|
||||||
const { signal, timer } = timeoutController()
|
const { signal, timer } = timeoutController(60000) // 60秒超时
|
||||||
|
|
||||||
const res = await fetch('/api/createTask', {
|
const res = await fetch('/api/createTask', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user