const { counterStore: { catList } } = this.props; console.log('counterStore ====catList====',catList.slice()) const newSort = catList.slice()
只要是@observable 通过mobx 处理都会变成 可观察对象。对象没这个层级 不影响。
const { counterStore: { catList } } = this.props; console.log('counterStore ====catList====',catList.slice()) const newSort = catList.slice()
只要是@observable 通过mobx 处理都会变成 可观察对象。对象没这个层级 不影响。