Files
nl-tcm-agent-admin/src/api/auth.js

7 lines
367 B
JavaScript
Raw Normal View History

2026-08-15 12:52:39 +08:00
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 }) // 会话有效性校验