Vanessa 2024-05-13 10:22:56 +08:00
parent 251e8b3234
commit 98c6fca20f
3 changed files with 21 additions and 0 deletions

View file

@ -64,10 +64,16 @@ export const getDocByScroll = (options: {
fetchPost("/api/filetree/getDoc", {
id: options.scrollAttr.zoomInId,
size: Constants.SIZE_GET_MAX,
key: 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,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
}, response => {
onGet({
data: response,
@ -94,6 +100,9 @@ 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,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
}, response => {
onGet({
data: response,