update Yi.Pure.Vue3/src/views/system/menu/utils/hook.tsx.
根目录下创建菜单时,parentId为空,应该传入"00000000-0000-0000-0000-000000000000",而不是0. Signed-off-by: 凯明 <120665461@qq.com>
This commit is contained in:
@@ -153,7 +153,7 @@ export function useMenu() {
|
||||
),
|
||||
higherMenuOptions: formatHigherMenuOptions(cloneDeep(dataList.value)),
|
||||
id: data?.id ?? "",
|
||||
parentId: data?.parentId ?? 0,
|
||||
parentId: data?.parentId ?? "00000000-0000-0000-0000-000000000000",
|
||||
router: data?.router ?? "",
|
||||
component: data?.component ?? "",
|
||||
orderNum: data?.orderNum ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user