fix: 修复系统管理审查发现的权限一致性与数据同步问题

统一角色与权限配置的标识体系,并修正菜单树勾选、菜单级联清理与用户备注持久化。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-26 03:27:23 +08:00
parent 77f718965d
commit 8a03781577
8 changed files with 74 additions and 60 deletions

View File

@@ -40,6 +40,9 @@ test.describe('系统管理 / 角色管理', () => {
await expect(page.getByText('配置权限 - 运营')).toBeVisible();
await expect(page.getByText('菜单权限')).toBeVisible();
await expect(page.getByText('按钮权限')).toBeVisible();
await expect(page.getByRole('treeitem', { name: '用量明细' })).toHaveAttribute('aria-checked', 'false');
await expect(page.getByRole('treeitem', { name: '模型列表' })).toHaveAttribute('aria-checked', 'true');
await expect(page.getByRole('checkbox', { name: 'system:user:add' })).toBeChecked();
await page.getByRole('button', { name: '保 存' }).click();
await expect(page.getByText('权限已保存')).toBeVisible();