1
This commit is contained in:
@@ -1124,7 +1124,11 @@ async function saveCurrent() {
|
||||
dirty.value = false
|
||||
currentImage.value.boxes = confirmed.value.map((b) => ({ ...b }))
|
||||
currentImage.value.labeled = confirmed.value.length > 0
|
||||
// 保存翻转 labeled 后该行会移出当前 tab(未标注→已标注等),visibleImages 收缩使
|
||||
// 同步审核态(全部框 class 0→2;仍含疑似 class 1→保持 1 待审核;空框→0,与服务端 AdminLabelSave 一致):
|
||||
// 不同步的话已保存图滞留旧 tab、计数虚高,直到下次 loadAll 才批量重分类,看起来像「删一条掉多条」(2026-09-12 实测定位)
|
||||
const allConfirmed = confirmed.value.every((b) => b.class === 0)
|
||||
currentImage.value.reviewStatus = confirmed.value.length === 0 ? 0 : allConfirmed ? 2 : 1
|
||||
// 保存翻转分类后该行会移出当前 tab(未标注→已标注等),visibleImages 收缩使
|
||||
// currentImage 静默漂移到邻图,继续编辑再保存会把框存到别的图——检测到漂移立即关弹窗
|
||||
if (!currentImage.value || currentImage.value.filename !== fn) {
|
||||
editorVisible.value = false
|
||||
|
||||
Reference in New Issue
Block a user