ts中的watch写法

402 阅读1分钟
@Watch('recordList')
    onRecordListChange(){
        window.localStorage.set('recordList',JSON.stringify(this.recordList));
    }
    

'recordList'是path @watch后面没有{}