login(data) {
return this.http.post(`${environment.url.management}/api/login`, {
'type': 'xxx',
'data': data
}).toPromise();
}
async checkLogin() {
const res = await this.loginService.login({xxx:'xxxx'});
if (res){
console.log('xxxxx');
}
}