This commit is contained in:
cjw
2026-02-16 01:32:13 +08:00
parent c7de90d774
commit 8cc92601a7
5 changed files with 42 additions and 4 deletions
+6 -2
View File
@@ -9,7 +9,9 @@ async function loadHistory() {
const fileList = document.getElementById('fileList');
try {
const response = await fetch('/api/history');
const response = await fetch('/api/history', {
method: 'POST'
});
if (!response.ok) {
throw new Error('获取历史记录失败');
}
@@ -94,7 +96,9 @@ async function toggleFileRecords(filename) {
}
try {
const response = await fetch(`/api/history/${encodeURIComponent(filename)}`);
const response = await fetch(`/api/history/${encodeURIComponent(filename)}`, {
method: 'POST'
});
if (!response.ok) {
throw new Error('获取记录详情失败');
}