chore: 优化部分代码

This commit is contained in:
2024-12-27 00:22:37 +08:00
parent bc3a5cff91
commit f0dff8b753
3 changed files with 6 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ const storeSetup = () => {
// 三方账号登录
const socialLogin = async (source: string, req: any) => {
const res = await socialLoginApi({ ...req, source, clientId: import.meta.env.VITE_CLIENT_ID, authType: AuthTypeEnum.SOCIAL_AUTH })
const res = await socialLoginApi({ ...req, source, clientId: import.meta.env.VITE_CLIENT_ID, authType: AuthTypeEnum.SOCIAL })
setToken(res.data.token)
token.value = res.data.token
}