You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
replaceText(target) function 内的 for (const childNode of target.childNodes) 内需要增加 if (this.tSkip(childNode)) return;
目前这边会透过 childNode 处将 "lite-search-item-type" 的内容转换出来
for (const childNode of target.childNodes) {
if (this.tSkip(childNode)) return; <== 这边
this.replaceText(childNode);
const targetLangText = childNode?.nodeType === Node.ELEMENT_NODE ? this.MT(childNode.innerText) : this.MT(childNode.nodeValue);
if (!targetLangText) continue;
if (childNode?.nodeType === Node.TEXT_NODE) {
childNode.nodeValue = targetLangText;
}
if (childNode?.nodeType === Node.ELEMENT_NODE) {
childNode.innerText = targetLangText;
}
}
The text was updated successfully, but these errors were encountered:
感谢您无私地分享
您好,这次更新发现了一个小问题
replaceText(target) function 内的 for (const childNode of target.childNodes) 内需要增加 if (this.tSkip(childNode)) return;
目前这边会透过 childNode 处将 "lite-search-item-type" 的内容转换出来
The text was updated successfully, but these errors were encountered: