Skip to content

Commit

Permalink
🐛 修复为 RBAC 角色更新 API 路径权限成功时返回结果的 success 为 false 的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
cfdxkk committed Feb 9, 2025
1 parent 3f69a7b commit 5216509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/RbacService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const updateApiPathPermissionsForRoleService = async (updateApiPathPermis
return { success: false, message: '为角色更新 API 路径权限失败,更新失败' }
}

return { success: false, message: '为角色更新 API 路径权限成功', result: updateApiPathPermissions4Role.result }
return { success: true, message: '为角色更新 API 路径权限成功', result: updateApiPathPermissions4Role.result }
} catch (error) {
console.error('ERROR', '为角色更新 API 路径权限时出错,未知错误:', error)
return { success: false, message: '为角色更新 API 路径权限时出错,未知错误' }
Expand Down

0 comments on commit 5216509

Please sign in to comment.