20260905172534
This commit is contained in:
1 parent
1b01a31252
commit
7b00eeb88c
711 files changed
+2849
-959
No files matched your search
@@ -72,8 +72,8 @@ export const useMenuStore = defineStore('menus', () => {
|
||||
function pruneByAccess(nodes) {
|
||||
const result = []
|
||||
for (const node of nodes) {
|
||||
// 模块管理(菜单编码 module)仅 g3soft 可见
|
||||
if (!isG3soft.value && String(node.b_code || '').toLowerCase() === 'module') continue
|
||||
// 模块管理(菜单主键/编码 module)仅 g3soft 可见
|
||||
if (!isG3soft.value && String(node.b_id || '').toLowerCase() === 'module') continue
|
||||
const children = node.children?.length ? pruneByAccess(node.children) : []
|
||||
// 目录:没有可访问子菜单时不渲染
|
||||
if (node.b_menu_type === 'directory') {
|
||||
|
||||
Reference in new issue
Block a user