修复-微信小程序的一键登录 缺少state参数

Signed-off-by: Evol郑天 <jpevol@163.com>
pull/21/head
Evol郑天 2023-12-02 02:16:30 +00:00 committed by Gitee
parent ac2b1b3d10
commit 259f0f44e4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 3 deletions

View File

@ -50,10 +50,11 @@ export function socialLogin(type, code, state) {
}
// 微信小程序的一键登录登录
export function weixinMiniAppLogin(phoneCode, loginCode) {
export function weixinMiniAppLogin(phoneCode, loginCode,state) {
return request.post('app-api/member/auth/weixin-mini-app-login', {
phoneCode,
loginCode
loginCode,
state
}, {
noAuth: true // TODO 芋艿:后续要做调整
});

View File

@ -187,7 +187,7 @@
}
//
const loginCode = await Routine.getCode()
AuthApi.weixinMiniAppLogin(phoneCode, loginCode).then(res => {
AuthApi.weixinMiniAppLogin(phoneCode, loginCode,'default').then(res => {
const data = res.data;
// TODO refreshToken
this.$store.commit("LOGIN", {