initial route through router implicit; ci route tag only for debugging purposes.

This commit is contained in:
Johann Hoffmann
2025-01-22 10:49:53 +01:00
parent c7f3398b11
commit bb8ebdd465
-9
View File
@@ -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);