refs #6930 perf: parallel calls
This commit is contained in:
parent
486b51bcfa
commit
f2f6e7be0b
|
@ -98,20 +98,19 @@ export default class Auth {
|
||||||
}
|
}
|
||||||
|
|
||||||
logout() {
|
logout() {
|
||||||
this.$http.post('VnUsers/logoutMultimedia', null, {headers: {'Authorization': this.vnToken.tokenMultimedia},
|
this.$http.post('Accounts/logout', null, {headers: {'Authorization': this.vnToken.tokenMultimedia},
|
||||||
}).then(({data}) => {
|
|
||||||
if (data) {
|
|
||||||
this.$http.post('VnUsers/logout', null, {
|
|
||||||
headers: {Authorization: this.vnToken.token}
|
|
||||||
}).catch(() => {});
|
|
||||||
|
|
||||||
this.vnToken.unset();
|
|
||||||
this.loggedIn = false;
|
|
||||||
this.vnModules.reset();
|
|
||||||
this.aclService.reset();
|
|
||||||
this.$state.go('login');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let promise = this.$http.post('VnUsers/logout', null, {
|
||||||
|
headers: {Authorization: this.vnToken.token}
|
||||||
|
}).catch(() => {});
|
||||||
|
this.vnToken.unset();
|
||||||
|
this.loggedIn = false;
|
||||||
|
this.vnModules.reset();
|
||||||
|
this.aclService.reset();
|
||||||
|
this.$state.go('login');
|
||||||
|
|
||||||
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
loadAcls() {
|
loadAcls() {
|
||||||
|
|
Loading…
Reference in New Issue