This commit is contained in:
parent
2b297d0dbd
commit
d860e6d920
|
|
@ -3,7 +3,7 @@ import { useEffect, useRef, useState } from "react";
|
||||||
import Operation from '@/components/Operation';
|
import Operation from '@/components/Operation';
|
||||||
import SpeakerModeModal from '@/components/SpeakerModeModal';
|
import SpeakerModeModal from '@/components/SpeakerModeModal';
|
||||||
import InvitingPersonnelModal from '@/components/InvitingPersonnelModal';
|
import InvitingPersonnelModal from '@/components/InvitingPersonnelModal';
|
||||||
import { Button, Input, Popover, Modal, Checkbox, message, Popconfirm } from "antd";
|
import { Button, Input, Popover, Modal, Checkbox, message, Popconfirm, notification } from "antd";
|
||||||
import { SearchOutlined, EllipsisOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
import { SearchOutlined, EllipsisOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
||||||
import { useLocation, useNavigate } from 'react-router-dom';
|
import { useLocation, useNavigate } from 'react-router-dom';
|
||||||
import { thumbImageBufferToBase64 } from '@/utils/package/base64'
|
import { thumbImageBufferToBase64 } from '@/utils/package/base64'
|
||||||
|
|
@ -130,6 +130,11 @@ const Meeting: React.FC = () => {
|
||||||
'我要发言',
|
'我要发言',
|
||||||
])
|
])
|
||||||
const [roomUserItem, setRoomUserItem] = useState<any>(null)
|
const [roomUserItem, setRoomUserItem] = useState<any>(null)
|
||||||
|
const [api, contextHolder] = notification.useNotification({
|
||||||
|
stack: {
|
||||||
|
threshold: 3
|
||||||
|
}
|
||||||
|
});
|
||||||
let userInfo = JSON.parse(storage.getItem('user') as string)
|
let userInfo = JSON.parse(storage.getItem('user') as string)
|
||||||
const msgTips = '您不是管理员或发言人,无法开启此功能!'
|
const msgTips = '您不是管理员或发言人,无法开启此功能!'
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
@ -206,7 +211,6 @@ const Meeting: React.FC = () => {
|
||||||
time = setInterval(() => {
|
time = setInterval(() => {
|
||||||
setCurrentSeconds(currentSeconds++)
|
setCurrentSeconds(currentSeconds++)
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('customStorageChange', handleCustomStorageChange);
|
window.removeEventListener('customStorageChange', handleCustomStorageChange);
|
||||||
window.removeEventListener('online', handleNetworkChange);
|
window.removeEventListener('online', handleNetworkChange);
|
||||||
|
|
@ -251,6 +255,17 @@ const Meeting: React.FC = () => {
|
||||||
setNoViewChatList(storageNoViewChatList)
|
setNoViewChatList(storageNoViewChatList)
|
||||||
}
|
}
|
||||||
setChatList((newChatList: any) => [...newChatList, item])
|
setChatList((newChatList: any) => [...newChatList, item])
|
||||||
|
setStatusList((res: any) => {
|
||||||
|
if (!res.userChatList) {
|
||||||
|
api.open({
|
||||||
|
message: '消息',
|
||||||
|
description: item.message,
|
||||||
|
duration: 3,
|
||||||
|
showProgress: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return res
|
||||||
|
})
|
||||||
chatScrollBotton()
|
chatScrollBotton()
|
||||||
break;
|
break;
|
||||||
// 扩展操作
|
// 扩展操作
|
||||||
|
|
@ -963,9 +978,8 @@ const Meeting: React.FC = () => {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={styles.meeting} onClick={() => {
|
<div className={styles.meeting}>
|
||||||
|
{contextHolder}
|
||||||
}}>
|
|
||||||
<div className={styles.meetingHeader}>
|
<div className={styles.meetingHeader}>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue