Vanessa 2025-09-20 16:46:50 +08:00
parent f34d8022b8
commit c4aee4d601
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ export const getDocByScroll = (options: {
actions = [Constants.CB_GET_UNUNDO];
}
}
if (options.scrollAttr?.zoomInId) {
if (options.scrollAttr?.zoomInId && options.scrollAttr?.rootId && options.scrollAttr.zoomInId !== options.scrollAttr.rootId) {
fetchPost("/api/filetree/getDoc", {
id: options.scrollAttr.zoomInId,
size: Constants.SIZE_GET_MAX,