diff --git a/inventory-web/src/views/system/PermissionConfig.vue b/inventory-web/src/views/system/PermissionConfig.vue index f501778..207d12b 100644 --- a/inventory-web/src/views/system/PermissionConfig.vue +++ b/inventory-web/src/views/system/PermissionConfig.vue @@ -220,7 +220,7 @@ const transformData = (nodes: any[]): PermissionNode[] => { const allChildren = node.children || [] // 1. 找操作列 (作为 Write 权限) - const opNode = allChildren.find((c: any) => c.type === 'element' && (c.code === 'operation' || c.code.endsWith('_op'))) + const opNode = allChildren.find((c: any) => c.type === 'element' && (c.code === 'operation' || c.code.endsWith(':operation') || c.code.endsWith('_op'))) const operationCode = opNode ? opNode.code : null // 2. 找普通列 (作为字段权限) @@ -624,4 +624,4 @@ onMounted(() => { padding: 1px 4px; border-radius: 3px; } - \ No newline at end of file +