From 4478409f4d81c495942d9ba7355d2408c554d769 Mon Sep 17 00:00:00 2001 From: jsy_zjg <31502350@qq.com> Date: Mon, 13 Jan 2025 10:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/login.js | 5 +++-- store/modules/user.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/login.js b/api/login.js index 29b33c7..484df95 100644 --- a/api/login.js +++ b/api/login.js @@ -26,7 +26,7 @@ export function getCodePhone(data) { } //手机号登录 -export function phoneLogin(mobilePhone,code, uuid) { +export function phoneLogin(mobilePhone,code, uuid,appType) { return request({ url: '/auth/loginPhone', headers: { @@ -36,7 +36,8 @@ export function phoneLogin(mobilePhone,code, uuid) { data: { mobilePhone, code, - uuid + uuid, + appType } }) } diff --git a/store/modules/user.js b/store/modules/user.js index 103cd47..081f46b 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -99,7 +99,7 @@ const user = { const code = data.code; const uuid = data.uuid; return new Promise((resolve, reject) => { - phoneLogin(mobilePhone,code, uuid) + phoneLogin(mobilePhone,code, uuid,2) .then(res => { setToken(res.data.access_token) commit("SET_TOKEN", res.data.access_token)