diff --git a/inventory-web/src/views/system/PermissionConfig.vue b/inventory-web/src/views/system/PermissionConfig.vue index 207d12b..403a684 100644 --- a/inventory-web/src/views/system/PermissionConfig.vue +++ b/inventory-web/src/views/system/PermissionConfig.vue @@ -224,7 +224,7 @@ const transformData = (nodes: any[]): PermissionNode[] => { const operationCode = opNode ? opNode.code : null // 2. 找普通列 (作为字段权限) - const columns = allChildren.filter((c: any) => c.type === 'element' && c.code !== 'operation' && !c.code.endsWith('_op')) + const columns = allChildren.filter((c: any) => c.type === 'element' && c.code !== 'operation' && !c.code.endsWith('_op') && !c.code.endsWith(':operation')) // 3. 找子菜单 (如果有) const subMenus = allChildren.filter((c: any) => c.type === 'menu')