强制更新

This commit is contained in:
yj 2024-09-24 15:22:08 +08:00
parent a5d755ffc8
commit 5c7d0d7649
1 changed files with 4 additions and 3 deletions

View File

@ -48,11 +48,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}
>
<div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}>
<div className={styles.remarks} dangerouslySetInnerHTML={{ __html: updateContent }}>
@ -62,10 +63,10 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
<div className={styles.buttons}>
<Button type="primary"
onClick={() => window.electron.onDownload('1')}
style={{ width: '100%', height: '40px' }}
style={{ width: '100%', height: '40px', marginBottom: '10px' }}
className={`m-ant-btn`}
></Button>
<div className={styles.button2} onClick={() => setIsUpdateModal(false)}></div>
{/* <div className={styles.button2} onClick={() => setIsUpdateModal(false)}>暂不更新</div> */}
</div> : progress < 100 ?
<div style={{ margin: '20px 0' }}>
{progress}%