This commit is contained in:
yj 2025-02-27 13:52:31 +08:00
parent 860f141782
commit d6e9de24bf
1 changed files with 5 additions and 5 deletions

View File

@ -60,9 +60,9 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
} }
function closeModal() { function closeModal() {
if (progress != 100) { // if (progress != 100) {
window.electron.onDownload('0') // 取消下载 // window.electron.onDownload('0') // 取消下载
} // }
setIsUpdateModal(false) setIsUpdateModal(false)
} }
@ -72,12 +72,12 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
title="" title=""
open={isUpdateModal} open={isUpdateModal}
footer={null} footer={null}
// onCancel={() => closeModal()} onCancel={() => closeModal()}
centered centered
width={'400px'} width={'400px'}
className='modal-padding' className='modal-padding'
maskClosable={false} maskClosable={false}
closeIcon={false} closeIcon={progress === 100 ? false : true}
> >
<div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}> <div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}>
<div className={styles.remarks} dangerouslySetInnerHTML={{ __html: updateContent }}> <div className={styles.remarks} dangerouslySetInnerHTML={{ __html: updateContent }}>