当解构时,发现变量重名了,可设置别名区分
const {
product: {
data: { list: productList = [] },
},
bulletin: {
data: { list: bulletinList = [] },
},
article: {
data: { list: articleList = [] },
}
} = this.props;
网友评论