Skip to content

Commit

Permalink
🎨 fix #9678
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Nov 17, 2023
1 parent 8e93286 commit af2fd13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/mobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class App {
fetchPost("/api/system/getEmojiConf", {}, emojiResponse => {
window.siyuan.emojis = emojiResponse.data as IEmoji[];
setNoteBook(() => {
initFramework(this);
initFramework(this, confResponse.data.start);
initRightMenu(this);
openChangelog();
const unPinsMenu: IMenu[] = [];
Expand Down
6 changes: 5 additions & 1 deletion app/src/mobile/util/initFramework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {syncGuide} from "../../sync/syncGuide";
import {Inbox} from "../../layout/dock/Inbox";
import {App} from "../../index";

export const initFramework = (app: App) => {
export const initFramework = (app: App, isStart:boolean) => {
setInlineStyle();
renderSnippet();
initKeyboardToolbar();
Expand Down Expand Up @@ -122,6 +122,10 @@ export const initFramework = (app: App) => {
idZoomIn.isZoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
return;
}
if (window.siyuan.config.fileTree.closeTabsOnStart && isStart) {
setEmpty(app);
return;
}
const localDoc = window.siyuan.storage[Constants.LOCAL_DOCINFO];
fetchPost("/api/block/checkBlockExist", {id: localDoc.id}, existResponse => {
if (existResponse.data) {
Expand Down
3 changes: 3 additions & 0 deletions app/src/protyle/header/Background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ export class Background {
id: protyle.block.rootID,
attrs: {"title-img": this.ial["title-img"]}
});
/// #if MOBILE
window.siyuan.menus.menu.remove();
/// #endif
}, Constants.SIYUAN_ASSETS_IMAGE);
event.preventDefault();
event.stopPropagation();
Expand Down

0 comments on commit af2fd13

Please sign in to comment.