pass values from the parent component to the child component, and the child component receives and processes the data. The syntax error of eslint: Unexpected side effect in "logisticsList" computed property.eslint (vue/no-side-effects-in-computed-properties)
computed: {
logisticsList() {
return this.list.OrderTrackInfo.reverse();
},
}
operate through the methods of get and set
computed: {
logisticsList: {
get() {
return this.list.OrderTrackInfo;
},
set() {
// , reverse
return this.list.OrderTrackInfo.reverse();
},
},
}