From aed70a05c889a553794db0b6711e4bf1b4ffec9b Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 3 Jan 2023 18:03:45 -0800 Subject: [PATCH] fix? --- package.json | 2 +- packages/client/src/components/MkUpdated.vue | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6021c3d4fc..38c8319648 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "13.0.8.3", + "version": "13.0.8.4", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/components/MkUpdated.vue b/packages/client/src/components/MkUpdated.vue index e43280018f..c6cc5b7272 100644 --- a/packages/client/src/components/MkUpdated.vue +++ b/packages/client/src/components/MkUpdated.vue @@ -23,8 +23,13 @@ import { version } from '@/config'; import { i18n } from '@/i18n'; import * as os from '@/os'; -const data = await os.api('release'); -const newRelease = (version === data.version); +let newRelease = false; +let data; +os.api('latest-version').then(res => { + data = res; + newRelease = (version === data?.version); +}); +