Merge branch 'develop' into devTee

This commit is contained in:
STW_TTTY\stwtt 2024-08-07 14:53:38 +07:00
commit 0496b01da1

View file

@ -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);
}
}