Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2025-02-27 04:08:54 +00:00
commit f33bbf16dd

View File

@ -526,14 +526,10 @@ export const useMenuDragEnd = () => {
return; return;
} }
const fromIndex = activeSchema.__route__.sort;
const toIndex = overSchema.__route__.sort;
moveRoute({ moveRoute({
sourceId: activeSchema.__route__.id, sourceId: activeSchema.__route__.id,
targetId: overSchema.__route__.id, targetId: overSchema.__route__.id,
sortField: 'sort', sortField: 'sort',
method: fromIndex > toIndex ? 'prepend' : 'insertAfter',
}); });
}, },
[moveRoute], [moveRoute],