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