save code
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
<button class="btn btn-outline btn-sm" onclick="clearResults()">清除结果</button>
|
||||
</div>
|
||||
<div class="upload-hint">
|
||||
支持 JPG / PNG 正面照 | 单文件 ≤ 1 MB | 也可拖拽图片到文件选择框
|
||||
支持 JPG / PNG 正面照 | 也可拖拽图片到文件选择框
|
||||
</div>
|
||||
<div id="statusBar" class="status hidden"></div>
|
||||
</div>
|
||||
@@ -131,7 +131,7 @@ async function submitTest() {
|
||||
const fileInput = $('imageFile');
|
||||
const file = fileInput.files[0];
|
||||
if (!file) { setStatus('请先选择一张图片', 'error'); return; }
|
||||
if (file.size > 1_000_000) { setStatus('文件超过 1 MB 限制', 'error'); return; }
|
||||
|
||||
|
||||
const btn = $('submitBtn');
|
||||
btn.disabled = true;
|
||||
|
||||
Reference in New Issue
Block a user