开发环境可关闭更新弹窗

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

View File

@ -66,7 +66,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
style={{ width: '100%', height: '40px', marginBottom: '10px' }}
className={`m-ant-btn`}
></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 style={{ margin: '20px 0' }}>
{progress}%