强制更新
This commit is contained in:
parent
a5d755ffc8
commit
5c7d0d7649
|
|
@ -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}%
|
||||
|
|
|
|||
Loading…
Reference in New Issue