This commit is contained in:
xiaopeng 2025-03-30 17:18:31 +08:00
parent ab9c81d393
commit 2ee617fb35

View File

@ -448,6 +448,10 @@ export default () => {
}
};
if (_.isEmpty(menus) || !Array.isArray(menus)) {
return;
}
for (let menu of menus) {
const menuData = { ...menu };
delete menuData.childMenus; // 删除childMenus属性因为我们不想将它保存到数据库中