supremeo
5/25/2019 - 2:14 PM

Use Vue-router without hash in URL #vuejs

Use Vue-router without hash in URL #vuejs

/* use mode: history */

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    }
  ]
})