pandaomeng / gitalk-comment

使用gitalk存储博客的评论
0 stars 0 forks source link

vue配置history模式 | Hexo #26

Open pandaomeng opened 5 years ago

pandaomeng commented 5 years ago

http://www.pandaomeng.com/2018/06-22-vue-history-mode/

前言引用官方的解释: HTML5 History 模式 vue-router 默认 hash 模式 —— 使用 URL 的 hash 来模拟一个完整的 URL,于是当 URL 改变时,页面不会重新加载。 默认的hash模式的url像这样:http://yoursite.com/index.html#/user/id 改为history模式后的url: http://yoursite.com/use