Commit b7071cfe by niuxiaolin

remove cookie when logout

parent 5adf0760
......@@ -22,6 +22,7 @@ export class UserComponent implements OnInit {
this.router.navigateByUrl("/admin/user/password");
}
logout() {
document.cookie="";
this.apiSrv.logout().subscribe((r: any) => {
if (r.success == "1") {
this.tokenService.clear();
......
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