获取 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

@ -24,14 +24,15 @@ export const processMessage = (response: IWebSocketData) => {
if ("reloadui" === response.cmd) {
if (response.data?.resetScroll) {
window.siyuan.storage[Constants.LOCAL_FILEPOSITION] = {};
setStorageVal(Constants.LOCAL_FILEPOSITION, window.siyuan.storage[Constants.LOCAL_FILEPOSITION]);
setStorageVal(Constants.LOCAL_FILEPOSITION, window.siyuan.storage[Constants.LOCAL_FILEPOSITION]);
}
/// #if MOBILE
window.location.reload();
/// #else
exportLayout({
reload: true,
onlyData: false,
cb() {
window.location.reload();
},
errorExit: false,
});
/// #endif