Vanessa 2025-04-15 11:05:31 +08:00
parent 0caf534464
commit d799005245

View file

@ -654,5 +654,10 @@ export const getKeyByLiElement = (element: HTMLElement) => {
element.querySelectorAll(".b3-list-item__text mark").forEach(item => {
keys.push(item.textContent);
});
if (keys.length === 0) {
element.querySelectorAll(".b3-list-item__meta mark").forEach(item => {
keys.push(item.textContent);
});
}
return [...new Set(keys)].join(" ");
};