初始化

This commit is contained in:
2026-08-15 12:52:39 +08:00
parent aa37fc4119
commit ca10f2e418
52 changed files with 4425 additions and 508 deletions

6
src/api/auth.js Normal file
View File

@@ -0,0 +1,6 @@
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 }) // 会话有效性校验