7 lines
367 B
JavaScript
7 lines
367 B
JavaScript
import { get, post } from './request'
|
|
|
|
// 登录鉴权相关接口
|
|
export const loginApi = (data) => post('/auth/login', data) // {username, password, captcha}
|
|
export const refreshApi = () => post('/auth/refresh') // 带旧 token 换新 token
|
|
export const profileApi = () => get('/auth/profile', {}, { silent: true }) // 会话有效性校验
|