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)