diff --git a/src/api/login.ts b/src/api/login.ts index a9a115a..6a5d441 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -9,7 +9,7 @@ export interface OauthTokenRequest { scope?: string; mobile?: string; code?: string; - clientId?: string; + clientConfigld?: string; [property: string]: any; } diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 3c89338..61b7352 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -253,7 +253,7 @@ async function handlePhoneLogin() { mobile: `${selectedCountry.value.dialCode}${phoneDigits}`, code: codeValue, grant_type: "mobile", - clientId: '6', + clientConfigld: '6', }); emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS); await navigateAfterLogin(); @@ -332,7 +332,7 @@ onMounted(() => { const idToken = response.credential; if (idToken) { - oauthToken({ openIdCode: [idToken], grant_type: 'google' }) + oauthToken({ openIdCode: [idToken], grant_type: 'google', clientConfigld: '6' }) .then(() => { emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS); return navigateAfterLogin()