接口6 增加字段

This commit is contained in:
xsl
2026-07-16 12:38:10 +08:00
parent 1cd4115b26
commit 632e75317b
10 changed files with 98 additions and 30 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ async function submitTest() {
form.append('erode_cm', $('erodeCm').value || '1.2');
try {
const resp = await fetch(API_BASE + ENDPOINT, { method: 'POST', body: form });
const resp = await fetch(API_BASE + ENDPOINT, { method: 'POST', headers: { 'X-Internal-Token': 'dev-shared-secret-2026' }, body: form });
const json = await resp.json();
const dt = ((performance.now() - t0) / 1000).toFixed(2);