This commit is contained in:
Vanessa 2023-03-28 11:41:51 +08:00
parent ca405a5f89
commit c0f738fcef
3 changed files with 9 additions and 2 deletions

View file

@ -346,7 +346,11 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
iconHTML: Constants.ZWSP,
label: window.siyuan.languages.mgmt,
click: () => {
viewCards(id, pathPosix().join(getNotebookName(notebookId), name), "Tree");
fetchPost("/api/filetree/getHPathByID", {
id
}, (response) => {
viewCards(id, pathPosix().join(getNotebookName(notebookId), response.data), "Tree");
});
/// #if MOBILE
closePanel();
/// #endif