fix: 同名同配方跳过时不再显示两条重叠提示
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Failing after 6s
Test / e2e-test (push) Has been skipped
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Failing after 5s
PR Preview / deploy-preview (pull_request) Has been skipped

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-11 23:01:06 +00:00
parent f99d377027
commit 10b0478c0d

View File

@@ -1001,7 +1001,7 @@ async function checkDupName(name, ings, target = 'diary') {
const where = target === 'public' ? '公共配方库' : '我的配方'
if (identical) {
ui.showToast(`${where}中已有一模一样的配方「${currentName}`)
ui.showToast(`${where}中已有一模一样的配方「${currentName},已跳过`)
return false
}
@@ -1191,7 +1191,6 @@ function skipCurrentParsed() {
formCocoRow.value = null
formVolume.value = ''
}
ui.showToast('已跳过,请处理下一条')
} else {
closeOverlay()
}