vue-router默认#修改 mode: “history”

mode: “history” 默认URL会夹带 # ;需在router.js 中export default new Router({ mode: “history”,})
vue中mode hash 和 history的区别

发布了57 篇原创文章 · 获赞 14 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_44317018/article/details/105627336