diff --git a/src/stores/menuList.ts b/src/stores/menuList.ts index 134dd5ba9..6aeeb2842 100644 --- a/src/stores/menuList.ts +++ b/src/stores/menuList.ts @@ -117,20 +117,6 @@ export const useMenuDataStore = defineStore("menuUse", () => { */ function fetchListMenu(data: ListMenu[]) { if (data) { - data.forEach((item) => { - if (item.children && item.children.length !== 0) { - item.children.forEach((q: ListMenu) => { - const config: any = childLevelTree.value[q.id]; - if (config) { - if (!q.children) { - q.children = []; - } - // เพิ่มเมนูเลเวล 3 - q.children.push(...config); - } - }); - } - }); menuList.value.push(...data); } }