feat: 增加扫码登录功能

This commit is contained in:
Gsh
2025-08-30 22:28:38 +08:00
parent ba07e2c905
commit 3cae477f3e
13 changed files with 468 additions and 206 deletions

View File

@@ -2,12 +2,12 @@ import { get, post } from '@/utils/request';
// 获取用户信息
export function getUserInfo() {
return get<any>('/ai-chat/account').json();
return get<any>('/account/ai').json();
}
// 获取二维码 LoginOrRegister 登录注册, Bind 绑定
export function getQrCode(data: any) {
return post<any>('/fuwuhao/qrcode', data).json();
return post<any>(`/fuwuhao/qrcode?sceneType=${data.sceneType}`, data).json();
}
// 扫码轮询