基于Spring Boot+Vue的博客系统 23——博客前台细节优化

使用history路由 vue-router 默认 hash 模式 —— 使用URL的hash来模拟一个完整的 URL,于是当 URL 改变时,页面不会重新加载。 我们可以在/src/router/index.js中修改router配置,使用history模式的路由。 当使用 history 模式时,URL 就像正常的 url,例如 http://yoursite.com/user/id。 但是在
相关文章
相关标签/搜索