commit remaining frontend updates

This commit is contained in:
lizhilun
2026-07-01 16:15:23 +08:00
parent e69930799c
commit 77cd66a854
6 changed files with 82 additions and 10 deletions
+1 -2
View File
@@ -159,9 +159,8 @@ async function submitRecord() {
}
try {
const res = await fetch(API + '/api/records', {
const res = await apiFetch(API + '/api/records', {
method: 'POST',
headers: headers(),
body: JSON.stringify(body)
});
if (!res.ok) { showToast('保存失败'); return; }