Merge branch 'develop' into devTee
This commit is contained in:
commit
0496b01da1
1 changed files with 0 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue