开发环境可关闭更新弹窗
This commit is contained in:
parent
5c7d0d7649
commit
a913c6520b
|
|
@ -66,7 +66,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
||||||
style={{ width: '100%', height: '40px', marginBottom: '10px' }}
|
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> */}
|
{import.meta.env.VITE_ENV === "development" ? <div className={styles.button2} onClick={() => setIsUpdateModal(false)}>暂不更新</div> : null}
|
||||||
</div> : progress < 100 ?
|
</div> : progress < 100 ?
|
||||||
<div style={{ margin: '20px 0' }}>
|
<div style={{ margin: '20px 0' }}>
|
||||||
下载进度:{progress}%
|
下载进度:{progress}%
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue