mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
f33bbf16dd
@ -526,14 +526,10 @@ export const useMenuDragEnd = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
const fromIndex = activeSchema.__route__.sort;
|
||||
const toIndex = overSchema.__route__.sort;
|
||||
|
||||
moveRoute({
|
||||
sourceId: activeSchema.__route__.id,
|
||||
targetId: overSchema.__route__.id,
|
||||
sortField: 'sort',
|
||||
method: fromIndex > toIndex ? 'prepend' : 'insertAfter',
|
||||
});
|
||||
},
|
||||
[moveRoute],
|
||||
|
Loading…
x
Reference in New Issue
Block a user