Vanessa 2024-05-13 10:30:48 +08:00
parent a31d306fbc
commit 33552ce38b

View file

@ -64,14 +64,14 @@ export const getDocByScroll = (options: {
fetchPost("/api/filetree/getDoc", {
id: options.scrollAttr.zoomInId,
size: Constants.SIZE_GET_MAX,
key: options.protyle.query?.key,
query: options.protyle.query?.key,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
}, response => {
if (response.code === 1) {
fetchPost("/api/filetree/getDoc", {
id: options.scrollAttr.rootId || options.mergedOptions?.blockId || options.protyle.block?.rootID || options.scrollAttr.startId,
key: options.protyle.query?.key,
query: options.protyle.query?.key,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
}, response => {
@ -100,7 +100,7 @@ export const getDocByScroll = (options: {
id: options.scrollAttr.rootId || options.mergedOptions?.blockId || options.protyle.block?.rootID || options.scrollAttr.startId,
startID: options.scrollAttr.startId,
endID: options.scrollAttr.endId,
key: options.protyle.query?.key,
query: options.protyle.query?.key,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
}, response => {