diff --git a/src/components/ftbot/ReloadControl.vue b/src/components/ftbot/ReloadControl.vue index c18cfba3..5def0046 100644 --- a/src/components/ftbot/ReloadControl.vue +++ b/src/components/ftbot/ReloadControl.vue @@ -32,6 +32,7 @@ export default { console.log('Starting automatic refresh.'); this.refreshFrequent(); this.refreshInterval = setInterval(() => { + console.log('refreshing_interval'); this.refreshFrequent(); }, 5000); this.refreshSlow(); @@ -41,7 +42,7 @@ export default { }, stopRefresh() { console.log('Stopping automatic refresh.'); - clearInterval(this.refreshinterval); + clearInterval(this.refreshInterval); clearInterval(this.refreshIntervalSlow); }, }, diff --git a/src/shared/userService.ts b/src/shared/userService.ts index fa7f5d2c..29c2d9fe 100644 --- a/src/shared/userService.ts +++ b/src/shared/userService.ts @@ -37,7 +37,7 @@ export default { ) .then((result) => { console.log(result.data); - + this.setAPIUrl(auth.url); if (result.data.access_token) { this.setAccessToken(result.data.access_token); } @@ -51,6 +51,8 @@ export default { refreshToken() { console.log('Refreshing token...'); const token = JSON.parse(localStorage.getItem(AUTH_REF_TOKEN) || '{}'); + const apiurl = this.getAPIUrl(); + console.log(apiurl); axios .post( `${this.getAPIUrl()}/token/refresh`,