网上都是说vue-router更新的原因,既然如此不如忽略
this.$router.push({ path: "/search/searchResult", query: { key: val } }) .catch(()=>{});