mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
initial route through router implicit; ci route tag only for debugging purposes.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user