mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-14 04:00:39 +08:00
feat(NoteForm): 增加文件上传状态反馈
This commit is contained in:
@@ -49,13 +49,9 @@ export const delete_task = async ({ video_id, platform }) => {
|
||||
}
|
||||
const res = await request.post('/delete_task', data)
|
||||
|
||||
if (res.data.code === 0) {
|
||||
|
||||
toast.success('任务已成功删除')
|
||||
return res.data
|
||||
} else {
|
||||
toast.error(res.data.message || '删除失败')
|
||||
throw new Error(res.data.message || '删除失败')
|
||||
}
|
||||
return res
|
||||
} catch (e) {
|
||||
toast.error('请求异常,删除任务失败')
|
||||
console.error('❌ 删除任务失败:', e)
|
||||
|
||||
Reference in New Issue
Block a user