fix(label): submit

This commit is contained in:
zhangheng
2026-04-08 16:41:41 +08:00
parent 69e489cd45
commit e0db9d3a8f
2 changed files with 28 additions and 2 deletions

View File

@@ -2186,7 +2186,13 @@ const LabelPage = ({
if (e.altKey && e.key.toLowerCase() === "x") {
e.preventDefault()
if (!isView) topRef.current?.commitTaskByActionKey?.()
if (!isView) {
if (topRef.current?.requestSubmitTaskConfirm) {
topRef.current.requestSubmitTaskConfirm()
} else {
topRef.current?.commitTaskByActionKey?.()
}
}
return
}