修改router的mode为history就可以

const router = new VueRouter({
mode: 'history',
routes: [...]
})

实际修改后需要注意修改assetPublicPath,调整静态资源路径,自己调试下,查看现有的路径,就知道改怎么改了

相关文章:

  • 2021-06-04
  • 2022-12-23
  • 2021-07-08
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-10-19
  • 2021-12-04
相关资源
相似解决方案