commit remaining frontend updates
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user