Vanessa 2023-04-14 16:44:42 +08:00
parent 4529221ab2
commit 7d8f725d8a

View file

@ -222,7 +222,7 @@ export const openCardByData = (cardsData: {
label: window.siyuan.languages.fileTree,
click() {
movePathTo((toPath, toNotebook) => {
filterElement.setAttribute("data-id", toPath[0] === "/" ? toNotebook[0] : getDisplayName(toPath[0], true))
filterElement.setAttribute("data-id", toPath[0] === "/" ? toNotebook[0] : getDisplayName(toPath[0], true, true))
filterElement.setAttribute("data-cardtype", toPath[0] === "/" ? "notebook" : "doc")
fetchNewRound();
}, [], undefined, window.siyuan.languages.specifyPath, true)