移除注册功能,管理员创建用户并新增创建用户弹窗

This commit is contained in:
2026-07-04 10:00:53 +08:00
parent 5a50af66bf
commit acd335c435
8 changed files with 218 additions and 212 deletions
-6
View File
@@ -79,12 +79,6 @@ async function request<T>(
}
export const api = {
register: (body: { username: string; email?: string; password: string }) =>
request<AuthResponse>('/api/auth/register', {
method: 'POST',
body: JSON.stringify(body),
}),
login: (body: { username: string; password: string }) =>
request<AuthResponse>('/api/auth/login', {
method: 'POST',