Vue 跳转相同路由实现 ,query 不同
方式一:
跳转
const _time = Date.now()this.$router.replace({path: '/file/search/list',query: { searchValue:'123', _time },})
watch监听
watch: {'$route.query': {handler: function (val) {const { searchValue} = val this.parmas.searchValue = searchValue this.search() },immediate: true }},
原文链接:https://blog.csdn.net/qq_42339350/article/details/126991659