mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
3ab71117f6
commit
ee2cc62982
1 changed files with 4 additions and 2 deletions
|
|
@ -333,13 +333,15 @@ const dragSame = async (protyle: IProtyle, sourceElements: Element[], targetElem
|
|||
item.removeAttribute("fold");
|
||||
foldHeadingIds.push(id);
|
||||
const headingIds = await fetchSyncPost("/api/block/getHeadingChildrenIDs", {id})
|
||||
headingIds.data.reverse().forEach((headingId: string) => {
|
||||
headingIds.data.forEach((headingId: string) => {
|
||||
undoOperations.push({
|
||||
action: "move",
|
||||
id: headingId,
|
||||
previousID,
|
||||
previousID: id,
|
||||
parentID,
|
||||
});
|
||||
})
|
||||
headingIds.data.reverse().forEach((headingId: string) => {
|
||||
doOperations.push({
|
||||
action: "move",
|
||||
id: headingId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue