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

http://localhost:8080/#/
const router = createRouter({
  history: createWebHistory(),
  routes
});

createWebHashHistory路由模式路径带#号

http://localhost:8080/
const router = createRouter({
  history: createWebHashHistory(),
  routes
});

 

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2021-11-26
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案