diff --git a/src/components/UpdateModal/index.tsx b/src/components/UpdateModal/index.tsx index 0b3aa2c..34c04bb 100644 --- a/src/components/UpdateModal/index.tsx +++ b/src/components/UpdateModal/index.tsx @@ -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} >