当vue页面路径同样 参数不一样时 有可能页面不会跳转刷问了大佬说是Vue的bug,而后采用了这个奇淫巧技vue
watch: { '$route.query' () {//'$route.query' 这个函数是关键 Object.assign(this.$data, this.$options.data())//将跳转前的数据置空 this.init()//再初始化当前的页面 } }, created: function () { this.init() },