mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 10:42:19 +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',
|
afterEnd: 'insertAfter',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 'beforeEnd' 表示的是插入到一个分组的里面
|
||||||
|
const options =
|
||||||
|
position === 'beforeEnd'
|
||||||
|
? {
|
||||||
|
targetScope: {
|
||||||
|
parentId: current.__route__.id,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
targetId: current.__route__.id,
|
||||||
|
};
|
||||||
|
|
||||||
await moveRoute({
|
await moveRoute({
|
||||||
sourceId: (fieldSchema as any).__route__.id,
|
sourceId: (fieldSchema as any).__route__.id,
|
||||||
targetId: current.__route__.id,
|
|
||||||
sortField: 'sort',
|
sortField: 'sort',
|
||||||
method: positionToMethod[position],
|
method: positionToMethod[position],
|
||||||
|
...options,
|
||||||
});
|
});
|
||||||
|
|
||||||
dn.loadAPIClientEvents();
|
dn.loadAPIClientEvents();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user