Commit 1e690f51 by yuananting

fix:录音预览bug

parent 10c39c66
......@@ -166,6 +166,22 @@ class QuestionPreviewModal extends Component {
</div>
);
break;
case "AUDIO":
dom = (
<div key={index} className="voice-box">
<XMAudio
forbidParse
url={content}
getDuration={(durationSize) => {
size = durationSize;
this.setState({});
}}
index={index}
size={size || 1000}
/>
</div>
);
break;
}
return dom;
})}
......@@ -249,6 +265,22 @@ class QuestionPreviewModal extends Component {
</div>
);
break;
case "AUDIO":
dom = (
<div key={index} className="voice-box">
<XMAudio
forbidParse
url={content}
getDuration={(durationSize) => {
size = durationSize;
this.setState({});
}}
index={index}
size={size || 1000}
/>
</div>
);
break;
}
return dom;
})}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment