Commit 34721a67 authored by xxx's avatar xxx

1

parent 77ef2e21
......@@ -187,14 +187,6 @@ export default {
if (user.password !== this.cookiePass) {
user.password = encrypt(user.password)
}
//修改人员表中绑定的车辆personalCenterInforQuery
httpGet(personalCenterInforQuery,{userName:user.username}).then((respersonal) => {
if(respersonal.code == 200 && respersonal.data.totalElements != 0){
let lastpersonalData = respersonal.data.content[0];
lastpersonalData.car = that.bindingCar;
putForJson(personalCenterInforQuery,lastpersonalData).then((res)=>{})
}
});
if(valid){
httpPostForJson(login, user).then( res =>{
let that = this;
......@@ -210,7 +202,16 @@ export default {
Cookies.remove('username')
Cookies.remove('password')
}
that.$router.push({ path: '/MLargeScreen/index?' + user.username});
//修改人员表中绑定的车辆personalCenterInforQuery
httpGet(personalCenterInforQuery,{userName:user.username}).then((respersonal) => {
if(respersonal.code == 200 && respersonal.data.totalElements != 0){
let lastpersonalData = respersonal.data.content[0];
lastpersonalData.car = that.bindingCar;
putForJson(personalCenterInforQuery,lastpersonalData).then((res)=>{
that.$router.push({ path: '/MLargeScreen/index?' + user.username})
})
}
})
}
})
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment