Skip to content

Commit

Permalink
fix(routes): properly load routes at startup
Browse files Browse the repository at this point in the history
fix #1
  • Loading branch information
jourdain committed Feb 4, 2024
1 parent 69fe15d commit 8572d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue3/src/use.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
async install(Vue) {
const router = createRouter({
history: createWebHashHistory(),
routes: [],
routes: window.trame.state.state.trame__routes || [],
});

window.trame.utils.router = router;
Expand Down

0 comments on commit 8572d38

Please sign in to comment.