/** * Common / Base config API module * 通用常量配置等相关接口 */ import { http } from '~/utils/request' import type { BaseConstsConfig } from '~/types/api' export const commonApi = { /** * 获取通用常量配置 * 对应后端接口:POST /base/consts/config * 免登录 */ getBaseConstsConfig() { // NOTE: http 拦截器会在 code===0 时将响应解包为 ApiResponse.data return http.post('/base/consts/config') }, }