在开发过程中发现路径中带有/#/的标示。
众所周知,vue-router有两种模式,hash模式和history模式。
带#的则是hash模式。
将router中的mode设置为history就可以了

在开发过程中发现路径中带有/#/的标示。
众所周知,vue-router有两种模式,hash模式和history模式。
带#的则是hash模式。
将router中的mode设置为history就可以了
本文标题:Vue 如何去除路径中的#号
本文链接:https://www.haomeiwen.com/subject/sahvwftx.html
网友评论