vue3 去除#的方法

时间:2021-09-12 13:25:28   收藏:0   阅读:18
http://localhost:8080/#/
const router = createRouter({
  history: createWebHistory(),
  routes
});

createWebHashHistory路由模式路径带#号

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

原文:https://www.cnblogs.com/zyh2333/p/15247182.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!