This commit is contained in:
Daniel 2024-04-02 15:59:28 +08:00
parent 4a7b21f8ad
commit 52e1dd8b06
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 8 additions and 5 deletions

View file

@ -35,9 +35,11 @@ const updateTitle = (rootID: string, tab: Tab, protyle?: IProtyle) => {
});
};
export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }) => {
hideMessage();
/// #if MOBILE
export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRootIDs: string[] }, hideMsg = true) => {
if (hideMsg) {
hideMessage();
}
/// #if MOBILE
if (window.siyuan.mobile.popEditor) {
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
hideElements(["dialog"]);