Vue.set(vm.userInfo,'address','beijing');
方法一:使用全局set方法
vm.$set(vm.userInfo,"address","beijing");
方法二:使用vue实例上的$set方法
数组操作:
Vue.set(vm.arr,1,5) //1为下标,5为修改后的内容
vm.$set(vm.arr,1,5)