deving
This commit is contained in:
+6
-2
@@ -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('获取记录详情失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user