fix: scope persona-select lookup to peer container to avoid mobile reading hidden desktop select

This commit is contained in:
SMNET Studio
2026-08-11 22:46:42 +08:00
parent 2a81f8e292
commit c455c41034
+3 -4
View File
@@ -4529,10 +4529,9 @@
btn.onclick = async () => {
const key = btn.dataset.as;
const [botAccountId, peerId] = key.split("|");
const sel =
btn.closest(".row-actions, .mcard, tr")?.querySelector(
`select[data-asg="${CSS.escape(key)}"]`,
) || document.querySelector(`select[data-asg="${CSS.escape(key)}"]`);
const sel = btn
.closest(".mcard, tr")
?.querySelector(`select[data-asg="${CSS.escape(key)}"]`);
if (!sel?.value) {
toast("请先在人设广场添加人设", true);
return;