This commit is contained in:
2026-06-01 13:40:53 +08:00
parent b22431d3cb
commit 39ff62c47e
13 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ const handleLogin = async () => {
state.error = ''
state.loading = true
try {
const data = await apiRequest<{ access_token: string; token_type: string; user: Record<string, unknown> }>('/api/auth/login', {
const data = await apiRequest<{ access_token: string; token_type: string; user: Record<string, unknown> }>('/api/auth/login/json', {
method: 'POST',
body: JSON.stringify({ username: state.username, password: state.password }),
})