fix(version-check): check version and buildTime

This commit is contained in:
yangsy
2025-11-19 12:17:06 +08:00
parent 2f06054e66
commit 5fa668acd3

View File

@@ -25,7 +25,10 @@ export function useVersionCheckQuery() {
return;
}
if (localVersionInfo.value.version !== newVersionInfo.version && !dialogShow.value) {
const { version: localVersion, buildTime: localBuildTime } = localVersionInfo.value;
const { version: remoteVersion, buildTime: remoteBuildTime } = newVersionInfo;
if ((localVersion !== remoteVersion || localBuildTime !== remoteBuildTime) && !dialogShow.value) {
dialogShow.value = true;
window.$dialog.info({
title: '发现新版本',