|
|
@@ -201,10 +201,11 @@ class Home extends React.Component {
|
|
|
if (!data.path || !data.voiceFileName) {
|
|
|
return;
|
|
|
}
|
|
|
- this.state.voiceList.push(data.path + data.voiceFileName);
|
|
|
+ const voiceList = this.state.voiceList;
|
|
|
+ // this.state.voiceList.push(data.path + data.voiceFileName);
|
|
|
this.setState(
|
|
|
{
|
|
|
- voiceList: this.state.voiceList,
|
|
|
+ voiceList: [...voiceList, data.path + data.voiceFileName],
|
|
|
},
|
|
|
() => {
|
|
|
if (!this.state.myStatus) {
|