feat(ReorganizeDialog, TransferQueueDialog): 优化错误提示,添加媒体状态颜色和任务计数功能

This commit is contained in:
jxxghp
2024-12-27 07:53:51 +08:00
parent 3f033bfdec
commit c868afbcbf
2 changed files with 38 additions and 10 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ async function handleTransferLog(logid: number, background: boolean = false) {
transferForm.fileitem = {} as FileItem
try {
const result: { [key: string]: any } = await api.post(`transfer/manual?background=${background}`, transferForm)
if (!result.success) $toast.error(`历史记录 ${logid} 重新整理失败:${result.message}`)
if (!result.success) $toast.error(result.message)
else if (background) $toast.success(`历史记录 ${logid} 已加入整理队列!`)
} catch (e) {
console.log(e)