feat: 修复登陆和注册

This commit is contained in:
zdl
2025-10-15 23:52:35 +08:00
parent 840666dcdb
commit 313c437cd8
3 changed files with 14 additions and 14 deletions

View File

@@ -239,12 +239,10 @@ export default function AuthFormContent() {
credential: phone,
verification_code: verificationCode,
login_type: 'phone',
type: 'phone',
purpose: config.api.purpose, // 使用配置中的purpose
};
// 调用API根据模式选择不同的endpoint
const response = await fetch(`${API_BASE_URL}${config.api.endpoint}`, {
// 调用API根据模式选择不同的endpoint
const response = await fetch(`${API_BASE_URL}/api/auth/login-with-code`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',