可以使用this.$set 数据驱动视图
this.$set(obj,key,val)
修改数据
// 在data里有search对象,,修改data里的custCode属性值
// 可以先定义一个对象变量。。利用解构赋值
let obj = { ...this.search, custCode: this.$route.params.custCode };
// obj.custCode = this.$route.params.custCode;
this.search = obj;