createWebHistory路由模式路径不带#号(生产环境下不能直接访问项目,需要nginx转发)

http://localhost:8080/#/

const router = createRouter({  history: createWebHistory(),  routes});

createWebHashHistory路由模式路径带#号

http://localhost:8080/

const router = createRouter({  history: createWebHashHistory(),  routes});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-06-12
  • 2021-12-08
  • 2021-10-14
猜你喜欢
  • 2021-12-02
  • 2022-01-28
  • 2022-12-23
  • 2023-03-16
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案