获取 json 布局不应保存 scroll

This commit is contained in:
Vanessa 2023-12-31 16:51:31 +08:00
parent 45bfec7d2f
commit ac269b4e1b
16 changed files with 74 additions and 83 deletions

View file

@ -144,7 +144,7 @@ const dialogArrow = (app: App, element: HTMLElement, event: KeyboardEvent) => {
openFileById({
app,
id: currentLiElement.getAttribute("data-node-id"),
action: [Constants.CB_GET_SCROLL]
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL]
});
}
hideElements(["dialog"]);

View file

@ -176,7 +176,6 @@ export const initWindow = async (app: App) => {
/// #if !BROWSER
const winOnClose = (close = false) => {
exportLayout({
reload: false,
cb() {
if (window.siyuan.config.appearance.closeButtonBehavior === 1 && !close) {
// 最小化
@ -191,7 +190,6 @@ export const initWindow = async (app: App) => {
exitSiYuan();
}
},
onlyData: false,
errorExit: true
});
};