chore: 不允许在按钮下添加数据

This commit is contained in:
dap 2025-01-06 18:10:55 +08:00
parent 6569265fab
commit ac913595a9

View File

@ -48,7 +48,12 @@ async function setupMenuSelect() {
item.menuName = $t(item.menuName);
});
// const folderArray = menuArray.filter((item) => item.menuType === 'M');
const menuTree = listToTree(menuArray, { id: 'menuId', pid: 'parentId' });
/**
* 这里需要过滤掉按钮类型
* 不允许在按钮下添加数据
*/
const filteredList = menuArray.filter((item) => item.menuType !== 'F');
const menuTree = listToTree(filteredList, { id: 'menuId', pid: 'parentId' });
const fullMenuTree = [
{
menuId: 0,