From bb8ebdd465dae711193b00157fb6da06b7b3a7e1 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Wed, 22 Jan 2025 10:49:53 +0100 Subject: [PATCH] initial route through router implicit; ci route tag only for debugging purposes. --- public/js/apps/Dashboard/Fhc.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/public/js/apps/Dashboard/Fhc.js b/public/js/apps/Dashboard/Fhc.js index 8e7cc7fe9..be8716d3d 100644 --- a/public/js/apps/Dashboard/Fhc.js +++ b/public/js/apps/Dashboard/Fhc.js @@ -104,19 +104,10 @@ const app = Vue.createApp({ event.preventDefault(); // Prevent browser navigation this.$router.push(route); } - }, - getInitialRoute() { - const el = document.getElementById('fhccontent') - const r = el?.getAttribute('route') - if (r) return r - return 'FhcDashboard' } }, mounted() { document.addEventListener('click', this.handleClick); - - // TODO: handle required property content_id - this.$router.push({name: this.getInitialRoute()}); }, beforeUnmount() { document.removeEventListener('click', this.handleClick);