vue params参数传递为空时的处理办法

this.$router.push({name:'',params:''’|| undefined})

你可能感兴趣的:(javascript)