updated menu
This commit is contained in:
parent
b5d4c507da
commit
36732bcc80
1 changed files with 0 additions and 14 deletions
|
|
@ -117,20 +117,6 @@ export const useMenuDataStore = defineStore("menuUse", () => {
|
||||||
*/
|
*/
|
||||||
function fetchListMenu(data: ListMenu[]) {
|
function fetchListMenu(data: ListMenu[]) {
|
||||||
if (data) {
|
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);
|
menuList.value.push(...data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue