refs #5554 codigo eliminado de vnLayout
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-05-25 07:32:30 +02:00
parent 2e69e4eea7
commit fdd22ca2d8
1 changed files with 0 additions and 20 deletions

View File

@ -10,7 +10,6 @@ export class Layout extends Component {
$onInit() {
this.getUserData();
// this.getAccessTokenConfig();
}
getUserData() {
@ -28,25 +27,6 @@ export class Layout extends Component {
return `/api/Images/user/160x160/${userId}/download?access_token=${token}`;
}
getAccessTokenConfig() {
this.$http.get('AccessTokenConfigs/findOne').then(json => {
window.localStorage.renewPeriod = json.data.renewPeriod;
window.localStorage.renewInterval = json.data.renewInterval;
const intervalMilliseconds = 1 * 1000;
const intervalID = setInterval(this.checkTokenValidity, intervalMilliseconds);
});
}
checkTokenValidity() {
console.log('checkTokenValidity');
// this.$http.post('VnUsers/renewToken')
// .then(() => {
// console.log('fin');
// });
}
refresh() {
window.location.reload();
}