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

Merge pull request !21 from Evol郑天/N/A
pull/30/head
芋道源码 2023-12-06 12:20:56 +00:00 committed by Gitee
commit 9f134ee5f0
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", {