如果帶參數跳轉的頁面是tag下的頁面時,切換tag不會路由切換,切換tag頁時url上的參數還是會在,切換時去掉跳轉時帶的參數用:
location.replace(location.href.replace(location.hash, `#${this.$route.path}`))
如果帶參數跳轉的頁面是tag下的頁面時,切換tag不會路由切換,切換tag頁時url上的參數還是會在,切換時去掉跳轉時帶的參數用:
location.replace(location.href.replace(location.hash, `#${this.$route.path}`))