先了解路由里面的history模式

history: createWebHashHistory   url上带#

history:createWebHistory     rul上不带#

注意:如果使用history:createWebHistory模式,如果浏览器缓存带上了#,是获取不到query字段的。

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐