开发: 路由改成hash格式
This commit is contained in:
@@ -97,7 +97,7 @@ export const ChatRecord: React.FC<IChatItem> = (props) => {
|
||||
return (
|
||||
<div
|
||||
style={{ padding: '8px 0', borderBottom: '1px solid #eee' }}
|
||||
key={`${item.msgtime}_${item.type}`}
|
||||
key={`${item.msgtime}_${item.type}_${item.content}`}
|
||||
>
|
||||
{chatRecordContent(item)}
|
||||
</div>
|
||||
|
@@ -29,9 +29,11 @@ export const ChatVideo: React.FC<IChatItem> = (props) => {
|
||||
className={styles.video}
|
||||
onClick={() => {
|
||||
setOpen(true);
|
||||
videoRef.current.play().catch((error) => {
|
||||
console.log(error);
|
||||
});
|
||||
setTimeout(() => {
|
||||
videoRef.current.play().catch((error) => {
|
||||
console.log(error);
|
||||
});
|
||||
}, 100);
|
||||
}}
|
||||
>
|
||||
<PlayCircleOutlined style={{ color: '#fff', fontSize: 40 }} />
|
||||
|
Reference in New Issue
Block a user