关闭公开注册并优化仪表盘

This commit is contained in:
yml2213
2026-07-31 09:39:18 +08:00
parent fe71276e62
commit f29f3eb841
11 changed files with 439 additions and 198 deletions
-4
View File
@@ -23,10 +23,6 @@ export const authApi = {
const res = await request.post('/auth/login', { username, password })
return res.data.data as LoginResult
},
register: async (data: { username: string; password: string; nickname?: string }) => {
const res = await request.post('/auth/register', data)
return res.data.data as User
},
profile: async () => {
const res = await request.get('/auth/profile')
return res.data.data as User