如果带参数跳转的页面是tag下的页面时,切换tag不会路由切换,切换tag页时url上的参数还是会在,切换时去掉跳转时带的参数用:
location.replace(location.href.replace(location.hash, `#${this.$route.path}`))
`#${this.$route.path}`里面的#不能去掉
文章标签 javascript 去掉url参数 JavaScript vue.js 带参数 文章分类 JavaScript 前端开发
如果带参数跳转的页面是tag下的页面时,切换tag不会路由切换,切换tag页时url上的参数还是会在,切换时去掉跳转时带的参数用:
location.replace(location.href.replace(location.hash, `#${this.$route.path}`))
`#${this.$route.path}`里面的#不能去掉
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M