From d030f0970965d379affc03079b6956c6721bb77c Mon Sep 17 00:00:00 2001 From: = Date: Wed, 17 Jun 2020 17:41:00 +0200 Subject: [PATCH] fix clock --- .../src/app_modules_thermo/dashboard/base-components/clock.ts | 4 ++-- .../app_modules_thermo/dashboard/base-components/clock.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts index 1fce8e89..4657a0d9 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts @@ -6,9 +6,9 @@ export default class Clock extends Vue { today: Date = new Date(); - mount() { + mounted() { let $this = this; - setTimeout(() => { + setInterval(() => { $this.today = new Date(); }, 1000) } diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue index 801ed85b..a865edd9 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue @@ -4,7 +4,7 @@ {{today | date('dddd DD')}} {{today | date('MMMM')}} - +