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");
|
item.removeAttribute("fold");
|
||||||
foldHeadingIds.push(id);
|
foldHeadingIds.push(id);
|
||||||
const headingIds = await fetchSyncPost("/api/block/getHeadingChildrenIDs", {id})
|
const headingIds = await fetchSyncPost("/api/block/getHeadingChildrenIDs", {id})
|
||||||
headingIds.data.reverse().forEach((headingId: string) => {
|
headingIds.data.forEach((headingId: string) => {
|
||||||
undoOperations.push({
|
undoOperations.push({
|
||||||
action: "move",
|
action: "move",
|
||||||
id: headingId,
|
id: headingId,
|
||||||
previousID,
|
previousID: id,
|
||||||
parentID,
|
parentID,
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
headingIds.data.reverse().forEach((headingId: string) => {
|
||||||
doOperations.push({
|
doOperations.push({
|
||||||
action: "move",
|
action: "move",
|
||||||
id: headingId,
|
id: headingId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue