Vanessa 2024-10-23 15:47:36 +08:00
parent 9f0552bc72
commit 814a4ec3ac
7 changed files with 52 additions and 33 deletions

View file

@ -71,7 +71,7 @@ export const reloadSync = (
}
}
setNoteBook(() => {
window.siyuan.mobile.files.init(false);
window.siyuan.mobile.docks.file.init(false);
});
/// #else
const allModels = getAllModels();
@ -215,7 +215,7 @@ export const setDefRefCount = (data: {
let liElement;
/// #if MOBILE
liElement = window.siyuan.mobile.files.element.querySelector(`li[data-node-id="${data.rootID}"]`);
liElement = window.siyuan.mobile.docks.file.element.querySelector(`li[data-node-id="${data.rootID}"]`);
/// #else
liElement = (getDockByType("file").data.file as Files).element.querySelector(`li[data-node-id="${data.rootID}"]`);
/// #endif