v-router的history模式

vue-router 默認 hash 模式 —— 使用 URL 的 hash 來模擬一個完整的 URL,因而當 URL 改變時,頁面不會從新加載。 若是不想要很醜的 hash,咱們能夠用路由的 history 模式vue const router = new VueRouter({ mode: 'history', routes: [...] }) 當你使用 history 模式時,URL
相關文章
相關標籤/搜索