mirror of
https://github.com/SMNETSTUDIO/WeChat-AI.git
synced 2026-08-13 22:53:42 +08:00
fix: scope persona-select lookup to peer container to avoid mobile reading hidden desktop select
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user