@Watch('b', { deep: true })
@Watch('a', { deep: true })
private getSubmitStatus ():void {
console.log(this.a)
console.log(this.b)
}
ps: 此处a,b均为对象,我是为了watch其中的变量才加的deep:true。
@Watch('b', { deep: true })
@Watch('a', { deep: true })
private getSubmitStatus ():void {
console.log(this.a)
console.log(this.b)
}
ps: 此处a,b均为对象,我是为了watch其中的变量才加的deep:true。