11
This commit is contained in:
@@ -10,7 +10,7 @@ import {SERVER_API_URL} from "@/utils/server";
|
||||
export async function pageRoles(params: RoleParam) {
|
||||
const res = await request.get<ApiResult<PageResult<Role>>>(
|
||||
SERVER_API_URL + '/system/role/page',
|
||||
{ params }
|
||||
params
|
||||
);
|
||||
if (res.code === 0) {
|
||||
return res.data;
|
||||
@@ -24,9 +24,7 @@ export async function pageRoles(params: RoleParam) {
|
||||
export async function listRoles(params?: RoleParam) {
|
||||
const res = await request.get<ApiResult<Role[]>>(
|
||||
SERVER_API_URL + '/system/role',
|
||||
{
|
||||
params
|
||||
}
|
||||
params
|
||||
);
|
||||
if (res.code === 0 && res.data) {
|
||||
return res.data;
|
||||
|
||||
Reference in New Issue
Block a user