// 从 '@/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', {}) }