fix(version-check): check version and buildTime
This commit is contained in:
@@ -25,7 +25,10 @@ export function useVersionCheckQuery() {
|
|||||||
return;
|
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;
|
dialogShow.value = true;
|
||||||
window.$dialog.info({
|
window.$dialog.info({
|
||||||
title: '发现新版本',
|
title: '发现新版本',
|
||||||
|
|||||||
Reference in New Issue
Block a user