mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +08:00
fix: move to inner (#6289)
This commit is contained in:
parent
76e5e7c1c0
commit
e1d891ed3a
@ -463,11 +463,23 @@ export const MenuDesigner = () => {
|
||||
afterEnd: 'insertAfter',
|
||||
};
|
||||
|
||||
// 'beforeEnd' 表示的是插入到一个分组的里面
|
||||
const options =
|
||||
position === 'beforeEnd'
|
||||
? {
|
||||
targetScope: {
|
||||
parentId: current.__route__.id,
|
||||
},
|
||||
}
|
||||
: {
|
||||
targetId: current.__route__.id,
|
||||
};
|
||||
|
||||
await moveRoute({
|
||||
sourceId: (fieldSchema as any).__route__.id,
|
||||
targetId: current.__route__.id,
|
||||
sortField: 'sort',
|
||||
method: positionToMethod[position],
|
||||
...options,
|
||||
});
|
||||
|
||||
dn.loadAPIClientEvents();
|
||||
|
Loading…
x
Reference in New Issue
Block a user