因为业务需求,需要携带参数跳转到当前页面刷新数据但是this.$router.push({name:'',query:{id:response}})
虽然有跳转,url中也有携带参数,但是表格数据并没有重新渲染
所以就还要用上组件beforeRouteUpdate 
参考组件:

beforeRouteUpdate (to, from, next) {
    // 在当前路由改变,但是该组件被复用时调用
    // 举例来说,对于一个带有动态参数的路径 /foo/:id,在 /foo/1 和 /foo/2 之间跳转的时候,
    // 由于会渲染同样的 Foo 组件,因此组件实例会被复用。而这个钩子就会在这个情况下被调用。
    // 可以访问组件实例 `this`
},
beforeRouteUpdate(to, from, next) {
    if(to.name === from.name){
        next()
        this.getXsdInfo().then(this.getSaleBillType)
        this.isAdd = 0;
    }else{
        next()
    }
},