This commit is contained in:
Viet An
2026-07-01 10:59:23 +07:00
parent e9e4fbe24f
commit 68872d3f06
12 changed files with 66 additions and 117 deletions

View File

@@ -140,9 +140,9 @@ if (topmenus.length === 0) {
topmenus.forEach((topmenu) => {
let submenus = $filter($store.common, { category: "submenu", classify: topmenu.code });
if ($store.rights.length > 0) {
submenus = submenus.filter((x) => $findIndex($store.rights, { setting: x.id }) >= 0);
}
// if ($store.rights.length > 0) {
// submenus = submenus.filter((x) => $findIndex($store.rights, { setting: x.id }) >= 0);
// }
topmenu.submenu = submenus.length > 0 ? submenus : null;
});