!5 update api/login.js.

Merge pull request !5 from N/A
This commit is contained in:
学习很差啦
2022-11-09 09:33:16 +00:00
committed by Gitee

View File

@@ -19,13 +19,14 @@ export function resetByMobile(params) {
* @params password * @params password
* @params username * @params username
*/ */
export function userLogin(params){ export function userLogin(params, clientType){
return http.request({ return http.request({
method: "POST", method: "POST",
url:`/passport/member/userLogin`, url:`/passport/member/userLogin`,
data: params, data: params,
header: { header: {
"content-type": "application/x-www-form-urlencoded", "content-type": "application/x-www-form-urlencoded",
clientType: clientType,
}, },
}) })
} }