mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix 历史记录中删除,同步删除文件不起作用
This commit is contained in:
@@ -129,11 +129,8 @@ async function removeHistory(item: TransferHistory) {
|
|||||||
deleteFile = true
|
deleteFile = true
|
||||||
|
|
||||||
// 调用删除API
|
// 调用删除API
|
||||||
const result: { [key: string]: any } = await api.delete('history/transfer', {
|
const result: { [key: string]: any } = await api.delete(`history/transfer?delete_file=${deleteFile}`, {
|
||||||
data: {
|
data: item,
|
||||||
...item,
|
|
||||||
delete_file: deleteFile,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user