update role frontend

This commit is contained in:
2026-03-30 10:13:57 +08:00
parent 368cb24ba5
commit 50d8d7267b
4 changed files with 19 additions and 11 deletions
@@ -153,7 +153,7 @@ watch(
<template>
<a-modal
:open="open"
:title="`配置权限 - ${role?.description || role?.name || ''}`"
:title="`配置权限 - ${role?.label || role?.name || ''}`"
width="720px"
:footer="null"
@cancel="handleClose"
@@ -33,9 +33,10 @@ import { api } from '@/utils/request'
const mockRole = {
id: 2,
name: 'editor',
description: '编辑者',
user_count: 3,
route_group_count: 2,
label: '编辑者',
description: '可以编辑内容的角色',
users_count: 3,
route_groups_count: 2,
}
const mockGroups = [