fix: 逻辑写反了,修复一下

This commit is contained in:
2025-09-09 21:40:46 +08:00
parent 81d9d3d66c
commit 7237523237

View File

@@ -13,7 +13,7 @@
检测到更新 {{ updateInfo.latest_version }} 请尽快更新 检测到更新 {{ updateInfo.latest_version }} 请尽快更新
</span> </span>
<span <span
v-if="backendUpdateInfo?.if_latest" v-if="!backendUpdateInfo?.if_latest"
class="update-hint" class="update-hint"
:title="getUpdateTooltip()" :title="getUpdateTooltip()"
> >
@@ -63,7 +63,7 @@ const version = import.meta.env.VITE_APP_VERSION || '获取版本失败!'
const updateInfo = ref<UpdateCheckOut | null>(null) const updateInfo = ref<UpdateCheckOut | null>(null)
const backendUpdateInfo = ref<VersionOut | null>(null) const backendUpdateInfo = ref<VersionOut | null>(null)
const POLL_MS = 10 * 60 * 1000 // 10 分钟 const POLL_MS = 1 * 60 * 1000 // 10 分钟
let pollTimer: number | null = null let pollTimer: number | null = null
const polling = ref(false) const polling = ref(false)