From 40afcb4b3235c5b0e9d4f4b744c1283538453d2e Mon Sep 17 00:00:00 2001 From: Seven Date: Thu, 15 Jan 2026 01:25:31 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E7=9A=84=E6=9B=B4=E6=96=B0=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/useAppUpdate.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/composables/useAppUpdate.ts b/src/composables/useAppUpdate.ts index 3e5c844..b02a813 100644 --- a/src/composables/useAppUpdate.ts +++ b/src/composables/useAppUpdate.ts @@ -74,21 +74,6 @@ export function useAppUpdate() { updateUrl?: string; }> { state.isChecking = true; - if (import.meta.env.DEV) { - const current = await getCurrentVersion(); - // 开发环境下不检查更新 - state.currentVersion = current; - state.hasUpdate = false; - state.latestVersion = current; - state.forceUpdate = false; - state.updateMessage = ""; - state.updateUrl = ""; - state.isChecking = false; - return { - hasUpdate: false, - currentVersion: current, - }; - } try { // 1. 获取当前版本 const current = await getCurrentVersion();