开发: 路由改成hash格式

This commit is contained in:
zhengw
2023-04-12 10:19:03 +08:00
parent d67758d361
commit e2b466042f
3 changed files with 9 additions and 7 deletions

View File

@@ -14,9 +14,9 @@ export default defineConfig({
*/
hash: true,
// hash 路由
// history: {
// type: 'hash',
// },
history: {
type: 'hash',
},
/**
* @name 兼容性设置
* @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖

View File

@@ -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>

View File

@@ -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 }} />