This commit is contained in:
parent
3150c05739
commit
6f19d6b653
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ export class Breadcrumb {
|
|||
if (cursorNodeElement) {
|
||||
id = cursorNodeElement.getAttribute("data-node-id");
|
||||
}
|
||||
fetchPost("/api/block/getTreeStat", {id: id || protyle.block.id}, (response) => {
|
||||
fetchPost("/api/block/getTreeStat", {id: id || (protyle.block.showAll ? protyle.block.id : protyle.block.rootID)}, (response) => {
|
||||
window.siyuan.menus.menu.remove();
|
||||
if (!protyle.contentElement.classList.contains("fn__none") && !protyle.disabled) {
|
||||
let uploadHTML = "";
|
||||
|
@ -337,7 +337,7 @@ export class Breadcrumb {
|
|||
type: "submenu",
|
||||
submenu: editSubmenu
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(exportMd(protyle.block.id));
|
||||
window.siyuan.menus.menu.append(exportMd(protyle.block.showAll ? protyle.block.id : protyle.block.rootID));
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
iconHTML: Constants.ZWSP,
|
||||
|
|
Loading…
Add table
Reference in a new issue