This commit is contained in:
Iruka 2025-01-13 12:02:44 +08:00
commit 8bbee918d6
2 changed files with 4 additions and 3 deletions

View File

@ -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
}
})
}

View File

@ -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)