右下角通知弹窗关闭
This commit is contained in:
parent
1d2f1072ef
commit
54a5b442cd
|
|
@ -68,13 +68,15 @@ const NoticeWindow: React.FC = () => {
|
|||
</div>
|
||||
</div>,
|
||||
onClose: () => {
|
||||
const dom = document.getElementsByClassName('ant-notification')
|
||||
if (dom.length === 0) {
|
||||
window.electron.setChildWindowShow({
|
||||
key: 'noticeWindow',
|
||||
bool: false
|
||||
})
|
||||
}
|
||||
setTimeout(() => {
|
||||
const dom = document.getElementsByClassName('ant-notification')
|
||||
if (dom.length === 0) {
|
||||
window.electron.setChildWindowShow({
|
||||
key: 'noticeWindow',
|
||||
bool: false
|
||||
})
|
||||
}
|
||||
}, 0);
|
||||
},
|
||||
duration: 10,
|
||||
placement: 'bottomRight',
|
||||
|
|
|
|||
Loading…
Reference in New Issue