Use this.f7.router from a panel using Vue

When a user logs out I want to delete the history so they won’t me able to go back to the app when logged out.
Now, the Logout button is on a panel, located at App.vue file, and I can’t use this.$f7router there, since the router only works on pages.

Is there a way to call this.$f7router.clearPreviousHistory() from a panel?

Thanks in advance!

You can access main view router like:


Thank you!
It worked great, although the panel wasn’t closing when using a navigate on a function, but with only the clearPreviousHistory and the link="/login" worked great!