强制更新
This commit is contained in:
parent
a5d755ffc8
commit
5c7d0d7649
|
|
@ -48,11 +48,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}
|
||||||
>
|
>
|
||||||
<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 }}>
|
||||||
|
|
@ -62,10 +63,10 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
<Button type="primary"
|
<Button type="primary"
|
||||||
onClick={() => window.electron.onDownload('1')}
|
onClick={() => window.electron.onDownload('1')}
|
||||||
style={{ width: '100%', height: '40px' }}
|
style={{ width: '100%', height: '40px', marginBottom: '10px' }}
|
||||||
className={`m-ant-btn`}
|
className={`m-ant-btn`}
|
||||||
>立即更新</Button>
|
>立即更新</Button>
|
||||||
<div className={styles.button2} onClick={() => setIsUpdateModal(false)}>暂不更新</div>
|
{/* <div className={styles.button2} onClick={() => setIsUpdateModal(false)}>暂不更新</div> */}
|
||||||
</div> : progress < 100 ?
|
</div> : progress < 100 ?
|
||||||
<div style={{ margin: '20px 0' }}>
|
<div style={{ margin: '20px 0' }}>
|
||||||
下载进度:{progress}%
|
下载进度:{progress}%
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue