Vanessa 2022-11-22 00:52:43 +08:00
parent 168d673a0c
commit 3ab71117f6

View file

@ -336,13 +336,13 @@ const dragSame = async (protyle: IProtyle, sourceElements: Element[], targetElem
headingIds.data.reverse().forEach((headingId: string) => { headingIds.data.reverse().forEach((headingId: string) => {
undoOperations.push({ undoOperations.push({
action: "move", action: "move",
id, id: headingId,
previousID, previousID,
parentID, parentID,
}); });
doOperations.push({ doOperations.push({
action: "move", action: "move",
id:headingId, id: headingId,
previousID: targetId, previousID: targetId,
}); });
}) })