开发: 路由改成hash格式
This commit is contained in:
@@ -14,9 +14,9 @@ export default defineConfig({
|
||||
*/
|
||||
hash: true,
|
||||
// hash 路由
|
||||
// history: {
|
||||
// type: 'hash',
|
||||
// },
|
||||
history: {
|
||||
type: 'hash',
|
||||
},
|
||||
/**
|
||||
* @name 兼容性设置
|
||||
* @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖
|
||||
|
@@ -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);
|
||||
setTimeout(() => {
|
||||
videoRef.current.play().catch((error) => {
|
||||
console.log(error);
|
||||
});
|
||||
}, 100);
|
||||
}}
|
||||
>
|
||||
<PlayCircleOutlined style={{ color: '#fff', fontSize: 40 }} />
|
||||
|
Reference in New Issue
Block a user