如果帶參數跳轉的頁面是tag下的頁面時,切換tag不會路由切換,切換tag頁時url上的參數還是會在,切換時去掉跳轉時帶的參數用:
location.replace(location.href.replace(location.hash, `#${this.$route.path}`))
`#${this.$route.path}`里面的#不能去掉
如果帶參數跳轉的頁面是tag下的頁面時,切換tag不會路由切換,切換tag頁時url上的參數還是會在,切換時去掉跳轉時帶的參數用:
location.replace(location.href.replace(location.hash, `#${this.$route.path}`))
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。