Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel
2026-06-27 21:50:41 +08:00
parent f2e54e2ad4
commit 86d2444234

View File

@@ -2505,6 +2505,9 @@ export class AgentChat extends Model {
wasChecked = input.checked; wasChecked = input.checked;
}); });
option.addEventListener("click", (e) => { option.addEventListener("click", (e) => {
if (el.classList.contains("agent-chat__msg--confirmed")) {
return;
}
if (input.type === "radio" && wasChecked) { if (input.type === "radio" && wasChecked) {
e.preventDefault(); e.preventDefault();
input.checked = false; input.checked = false;
@@ -2534,6 +2537,10 @@ export class AgentChat extends Model {
if (actions) { if (actions) {
(actions as HTMLElement).innerHTML = '<span class="agent-chat__confirm-done">' + (L.agentQuestionSubmitted || "Submitted") + "</span>"; (actions as HTMLElement).innerHTML = '<span class="agent-chat__confirm-done">' + (L.agentQuestionSubmitted || "Submitted") + "</span>";
} }
// 提交后禁用所有输入,不可再修改。
el.querySelectorAll("input").forEach((inp) => {
(inp as HTMLInputElement).disabled = true;
});
this.postQuestionAnswer(questionID, answers); this.postQuestionAnswer(questionID, answers);
}); });
} }