From 57c2f90036df249d7b37f4ed66f4b0e06c630cbc Mon Sep 17 00:00:00 2001 From: Daniel Spittank Date: Sun, 14 Nov 2021 23:02:47 +0100 Subject: [PATCH] =?UTF-8?q?Automatisches=20Reload=20f=C3=BCr=20Vertretungs?= =?UTF-8?q?plan=20eingebaut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/InfodisplayLehrer.vue | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/views/InfodisplayLehrer.vue b/src/views/InfodisplayLehrer.vue index d33967b..c6771fe 100644 --- a/src/views/InfodisplayLehrer.vue +++ b/src/views/InfodisplayLehrer.vue @@ -40,6 +40,7 @@ elevation="2" > @@ -54,6 +55,7 @@ elevation="2" > @@ -84,16 +86,25 @@ export default { 'Vertretungsplan', 'Stundenpläne' ], + reloadTime: 600000 }), - props: { - msg: String - }, - components: { Newsreader, Vertretungsplan }, + created() { + setTimeout(this.onTimeout, this.reloadTime) + }, + + methods: { + onTimeout () { + // Reload-Event einrichten + this.$refs.nr.reload() + this.$refs.vp.reload() + setTimeout(this.onTimeout, this.reloadTime) + } + } } \ No newline at end of file