diff --git a/src/api/system/role.ts b/src/api/system/role.ts index 3021cc57..635b84bf 100644 --- a/src/api/system/role.ts +++ b/src/api/system/role.ts @@ -114,7 +114,7 @@ export function listRolePerms(roleId: number, menuId: number) { return request({ url: '/youlai-admin/api/v1/roles/' + roleId + '/permissions', method: 'get', - data: {menuId: menuId} + params: {menuId: menuId} }) } diff --git a/src/views/system/role/components/Perm.vue b/src/views/system/role/components/Perm.vue index cbea62de..d3ad6011 100644 --- a/src/views/system/role/components/Perm.vue +++ b/src/views/system/role/components/Perm.vue @@ -1,27 +1,20 @@