From 73309d78902bfb8a19f435fda5e9f3fed3c62a1a Mon Sep 17 00:00:00 2001 From: Nick Zeng Date: Mon, 30 Mar 2026 10:23:43 +0800 Subject: [PATCH] fix role key error --- frontend/src/components/RolePermissionModal.vue | 8 ++++---- .../src/components/__tests__/RolePermissionModal.spec.ts | 7 +++++-- frontend/src/stores/role-manage.ts | 6 +++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/RolePermissionModal.vue b/frontend/src/components/RolePermissionModal.vue index 5299cd2..06bcb1c 100644 --- a/frontend/src/components/RolePermissionModal.vue +++ b/frontend/src/components/RolePermissionModal.vue @@ -43,7 +43,7 @@ const methodColorMap: Record = { const overrideColumns = [ { title: '方法', key: 'method', width: 80 }, { title: '路径', dataIndex: 'path', key: 'path' }, - { title: '允许', key: 'allow', width: 80 }, + { title: '允许', key: 'allowed', width: 80 }, { title: '操作', key: 'action', width: 80 }, ] @@ -113,7 +113,7 @@ function addOverride() { route_id: route.id, method: route.method, path: route.path, - allow: true, + allowed: true, }) addingRouteId.value = null } @@ -211,8 +211,8 @@ watch( {{ record.method }} -