先了解路由里面的history模式
history: createWebHashHistory url上带#
history:createWebHistory rul上不带#
注意:如果使用history:createWebHistory模式,如果浏览器缓存带上了#,是获取不到query字段的。
先了解路由里面的history模式
history: createWebHashHistory url上带#
history:createWebHistory rul上不带#
注意:如果使用history:createWebHistory模式,如果浏览器缓存带上了#,是获取不到query字段的。