You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
511 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 从 '@/utils/request' 模块导入 post 方法,用于发送 POST 请求
import { post } from '@/utils/request'
/**
* 获取角色列表
* @returns {Promise} - 返回一个 Promise 对象用于处理请求结果。当请求成功时Promise 将解析为服务器返回的角色列表数据请求失败时Promise 将被拒绝。
*/
export function fetchList() {
// 发送 POST 请求到指定的获取角色列表接口,请求体为空对象
return post('/exam/api/sys/role/list', {})
}