chore: 不允许在按钮下添加数据
This commit is contained in:
parent
6569265fab
commit
ac913595a9
@ -48,7 +48,12 @@ async function setupMenuSelect() {
|
|||||||
item.menuName = $t(item.menuName);
|
item.menuName = $t(item.menuName);
|
||||||
});
|
});
|
||||||
// const folderArray = menuArray.filter((item) => item.menuType === 'M');
|
// 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 = [
|
const fullMenuTree = [
|
||||||
{
|
{
|
||||||
menuId: 0,
|
menuId: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user