|
|
|
@ -54,8 +54,7 @@ const user = {
|
|
|
|
|
//调用加密方法(传密码和公钥)
|
|
|
|
|
const password = encrypt(userInfo.password,publicKey)
|
|
|
|
|
const code = userInfo.code
|
|
|
|
|
const uuid = userInfo.uuid
|
|
|
|
|
login(username, password, code, uuid)
|
|
|
|
|
login(username, password, code)
|
|
|
|
|
.then(res => {
|
|
|
|
|
setToken(res.token)
|
|
|
|
|
commit('SET_TOKEN', res.token)
|
|
|
|
|