mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 23:44:06 +01:00
This commit is contained in:
parent
251e8b3234
commit
98c6fca20f
3 changed files with 21 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue