fix: align login and home routing with leaudit backend

This commit is contained in:
wren
2026-04-29 18:02:31 +08:00
parent 7dbeaac5f8
commit 3d3d8d6e6b
7 changed files with 636 additions and 724 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ export interface LoginResponse {
* @returns 登录响应(包含 JWT token
*/
export async function loginWithOAuth(loginData: LoginRequest): Promise<LoginResponse> {
const loginUrl = `${API_BASE_URL}/auth/login`;
const loginUrl = `${API_BASE_URL}/api/auth/login`;
console.log("📝 [Login Client] 调用后端 OAuth 登录接口:", loginUrl);
@@ -116,7 +116,7 @@ export async function loginWithPassword(
username: string,
password: string
): Promise<LoginResponse> {
const loginUrl = `${API_BASE_URL}/auth/login`;
const loginUrl = `${API_BASE_URL}/api/auth/login`;
console.log("📝 [Login Client] 调用后端密码登录接口:", loginUrl);