v-router的history模式

vue-router 默认 hash 模式 —— 使用 URL 的 hash 来模拟一个完整的 URL,因而当 URL 改变时,页面不会从新加载。 若是不想要很丑的 hash,咱们能够用路由的 history 模式vue const router = new VueRouter({ mode: 'history', routes: [...] }) 当你使用 history 模式时,URL
相关文章
相关标签/搜索