开发: 路由改成hash格式
This commit is contained in:
@@ -14,9 +14,9 @@ export default defineConfig({
|
|||||||
*/
|
*/
|
||||||
hash: true,
|
hash: true,
|
||||||
// hash 路由
|
// hash 路由
|
||||||
// history: {
|
history: {
|
||||||
// type: 'hash',
|
type: 'hash',
|
||||||
// },
|
},
|
||||||
/**
|
/**
|
||||||
* @name 兼容性设置
|
* @name 兼容性设置
|
||||||
* @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖
|
* @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖
|
||||||
|
@@ -97,7 +97,7 @@ export const ChatRecord: React.FC<IChatItem> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{ padding: '8px 0', borderBottom: '1px solid #eee' }}
|
style={{ padding: '8px 0', borderBottom: '1px solid #eee' }}
|
||||||
key={`${item.msgtime}_${item.type}`}
|
key={`${item.msgtime}_${item.type}_${item.content}`}
|
||||||
>
|
>
|
||||||
{chatRecordContent(item)}
|
{chatRecordContent(item)}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -29,9 +29,11 @@ export const ChatVideo: React.FC<IChatItem> = (props) => {
|
|||||||
className={styles.video}
|
className={styles.video}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
videoRef.current.play().catch((error) => {
|
setTimeout(() => {
|
||||||
console.log(error);
|
videoRef.current.play().catch((error) => {
|
||||||
});
|
console.log(error);
|
||||||
|
});
|
||||||
|
}, 100);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PlayCircleOutlined style={{ color: '#fff', fontSize: 40 }} />
|
<PlayCircleOutlined style={{ color: '#fff', fontSize: 40 }} />
|
||||||
|
Reference in New Issue
Block a user