NovoManu / vue-auto-router

MIT License
7 stars 2 forks source link

History is using hash mode #1

Open pisandelli opened 2 years ago

pisandelli commented 2 years ago

It would be better if the router uses the HTML5 mode, without the hash in URL. Example:

export default Promise.all(routes).then(routes => {
  const router = createRouter({
    // history: createWebHashHistory(),
    history: createWebHistory(),
    routes
  })

  router.beforeEach(setMiddlewares)

  return router
})
pisandelli commented 2 years ago

I just made this PR for this.

2