[Vuejs]-Vue-router routes to the wrong page, the link has to add a '#' before the path

3👍

You will have to use ‘/#/’ because you are using createWebHashHistory(), If there’s no specific reason for using createWebHashHistory(), you should use createWebHistory() as it is the recommended way.

More info here:
https://next.router.vuejs.org/guide/essentials/history-mode.html

3👍

You should use createWebHistory instead createWebHashHistory. More details here.

Leave a comment