|
@@ -36,11 +36,12 @@ const user = {
|
|
|
Login({ commit }, userInfo) {
|
|
|
const username = userInfo.username.trim()
|
|
|
const password = userInfo.password
|
|
|
+ const captchaVerification = userInfo.captchaVerification
|
|
|
const socialCode = userInfo.socialCode
|
|
|
const socialState = userInfo.socialState
|
|
|
const socialType = userInfo.socialType
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- login(username, password, socialType, socialCode, socialState).then(res => {
|
|
|
+ login(username, password, captchaVerification, socialType, socialCode, socialState).then(res => {
|
|
|
res = res.data;
|
|
|
// 设置 token
|
|
|
setToken(res)
|