fix: 调整微信登录与短信登录的接口路径

- 微信登录前缀改为 /api/v1/auth/wxma
- 短信登录改为 /api/v1/auth/sms/login
This commit is contained in:
Ray.Hao committed 2026-09-30 19:17:33 +08:00
1 parent f9d7ecf2ce
commit 1e3954ce0c
1 file changed
+2 -2
+2 -2
View File
@@ -1,7 +1,7 @@
import request from "@/utils/request";
const AUTH_BASE_URL = "/api/v1/auth";
const WXMA_AUTH_BASE_URL = "/api/v1/wxma/auth";
const WXMA_AUTH_BASE_URL = "/api/v1/auth/wxma";
export interface PasswordLoginParams {
username: string;
@@ -97,7 +97,7 @@ const AuthAPI = {
const mobileSafe = encodeURIComponent(data.mobile);
const codeSafe = encodeURIComponent(data.code);
return request<LoginResult>({
url: `${AUTH_BASE_URL}/login/sms?mobile=${mobileSafe}&code=${codeSafe}`,
url: `${AUTH_BASE_URL}/sms/login?mobile=${mobileSafe}&code=${codeSafe}`,
method: "POST",
});
},