vue2.0去除url中的#/

// 例子,自行對應到你項目的代碼 const router = new VueRouter({ routes, mode: 'history', scrollBehavior (to, from, savedPosition) { // 若是你的連結是帶 # 這種 // to.hash 就會有值(值就是連結) // 例如 #3 if (
相關文章
相關標籤/搜索