This commit is contained in:
Vanessa 2022-05-30 15:53:21 +08:00
parent dd51b98101
commit 978c2c9386
2 changed files with 1 additions and 6 deletions

View file

@ -236,10 +236,8 @@ export const initFileMenu = (notebookId: string, pathString: string, id: string,
label: window.siyuan.languages.openBy,
submenu: openSubmenus,
}).element);
if (!window.siyuan.config.readonly) {
}
window.siyuan.menus.menu.append(exportMd(id));
}
}
return window.siyuan.menus.menu;
};

View file

@ -329,11 +329,8 @@ export class Breadcrumb {
type: "submenu",
submenu: editSubmenu
}).element);
/// #if !BROWSER
window.siyuan.menus.menu.append(exportMd(protyle.block.parentID));
/// #endif
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
window.siyuan.menus.menu.append(new MenuItem({
type: "readonly",
label: `<div class="fn__flex">${window.siyuan.languages.docRuneCount}<span class="fn__space fn__flex-1"></span>${response.data.rootBlockRuneCount}</div>