Commit 59a12b53 by sunchao

jquery文件替换&添加登出接口

parent e6a92fce
......@@ -70,6 +70,7 @@
/* 文本不允许选中 */
user-select: none;
-webkit-user-select: none;
font-size: 14px;
}
/* 滑块 */
#dragHandler {
......
......@@ -29,8 +29,18 @@ export class MySettingComponent implements OnInit {
}
getOut() {
localStorage.removeItem('lifeCustomerInfo');
this.router.navigate(['/login']);
const objParam = {
loginLogId: JSON.parse(localStorage.getItem('lifeCustomerInfo')).loginLogId,
userId: JSON.parse(localStorage.getItem('lifeCustomerInfo')).customerId
};
this.myService.erpLogout(objParam).subscribe((res)=>{
if(res['success']){
localStorage.removeItem('lifeCustomerInfo');
this.router.navigate(['/login']);
}else{
alert(res['message'])
}
})
}
}
......@@ -754,4 +754,14 @@ export class MyService {
return res;
});
}
/**
* 用户退出登录
*/
erpLogout(objParam) {
const url = this.API + "/erp/erpLogout";
return this.http.post(url, JSON.stringify(objParam)).pipe(res => {
return res;
});
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
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