watch: {
msg: {
//初始化的时候执行一次
immediate: true,
handler: function (oldValue, newValue) {
console.log(oldValue, newValue);
this.allmsg = oldValue + '111';
}
}
},