优化更新弹窗弹出时机

pull/1326/head
lyswhut 2023-04-11 14:30:26 +08:00
parent d970687ebe
commit 7149d0d43f
3 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,7 @@
- 启用桌面歌词时,取消对歌词窗口的聚焦 - 启用桌面歌词时,取消对歌词窗口的聚焦
- 增加kg歌单歌曲flac24bit显示@helloplhm-qwq - 增加kg歌单歌曲flac24bit显示@helloplhm-qwq
- 增加tx源热门评论图片显示@Folltoshe - 增加tx源热门评论图片显示@Folltoshe
- 优化更新弹窗弹出时机
### 修复 ### 修复

View File

@ -18,14 +18,14 @@
</div> </div>
<div v-if="!isAgreePact" :class="$style.btns"> <div v-if="!isAgreePact" :class="$style.btns">
<base-btn :class="$style.btn" @click="handleClose(true)">{{ $t('not_agree') }}</base-btn> <base-btn :class="$style.btn" @click="handleClose(true)">{{ $t('not_agree') }}</base-btn>
<base-btn :class="$style.btn" :disabled="!btnEnable" @click="handleClick()">{{ $t('agree') }} {{ timeStr }}</base-btn> <base-btn :class="$style.btn" :disabled="!btnEnable" @click="handleClick">{{ $t('agree') }} {{ timeStr }}</base-btn>
</div> </div>
</main> </main>
</material-modal> </material-modal>
</template> </template>
<script> <script>
import { quitApp } from '@renderer/utils/ipc' import { checkUpdate, quitApp } from '@renderer/utils/ipc'
import { openUrl } from '@common/utils/electron' import { openUrl } from '@common/utils/electron'
import { isShowPact } from '@renderer/store' import { isShowPact } from '@renderer/store'
import { appSetting, saveAgreePact } from '@renderer/store/setting' import { appSetting, saveAgreePact } from '@renderer/store/setting'
@ -75,6 +75,8 @@ export default {
this.$dialog({ this.$dialog({
message: Buffer.from('e69cace8bdafe4bbb6e5ae8ce585a8e5858de8b4b9e4b894e5bc80e6ba90efbc8ce5a682e69e9ce4bda0e698afe88ab1e992b1e8b4ade4b9b0e79a84efbc8ce8afb7e79bb4e68ea5e7bb99e5b7aee8af84efbc810a0a5468697320736f667477617265206973206672656520616e64206f70656e20736f757263652e', 'hex').toString(), message: Buffer.from('e69cace8bdafe4bbb6e5ae8ce585a8e5858de8b4b9e4b894e5bc80e6ba90efbc8ce5a682e69e9ce4bda0e698afe88ab1e992b1e8b4ade4b9b0e79a84efbc8ce8afb7e79bb4e68ea5e7bb99e5b7aee8af84efbc810a0a5468697320736f667477617265206973206672656520616e64206f70656e20736f757263652e', 'hex').toString(),
confirmButtonText: Buffer.from('e5a5bde79a8420284f4b29', 'hex').toString(), confirmButtonText: Buffer.from('e5a5bde79a8420284f4b29', 'hex').toString(),
}).then(() => {
checkUpdate()
}) })
}, 2e3) }, 2e3)
}, },

View File

@ -67,7 +67,7 @@ export default () => {
sendInited() sendInited()
handleListAutoUpdate() handleListAutoUpdate()
if (window.lx.isProd) checkUpdate() if (window.lx.isProd && appSetting['common.isAgreePact']) checkUpdate()
}) })
}) })
} }