mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 11:09:40 +08:00
This commit is contained in:
parent
4e0dd6120c
commit
bc85ec131c
@ -651,7 +651,7 @@ export const initCriteriaMenu = (element: HTMLElement, data: Config.IUILayoutTab
|
|||||||
|
|
||||||
export const getKeyByLiElement = (element: HTMLElement) => {
|
export const getKeyByLiElement = (element: HTMLElement) => {
|
||||||
const keys: string[] = [];
|
const keys: string[] = [];
|
||||||
element.querySelectorAll("mark").forEach(item => {
|
element.querySelectorAll(".b3-list-item__text mark").forEach(item => {
|
||||||
keys.push(item.textContent);
|
keys.push(item.textContent);
|
||||||
});
|
});
|
||||||
return [...new Set(keys)].join(" ");
|
return [...new Set(keys)].join(" ");
|
||||||
|
Loading…
Reference in New Issue
Block a user