fix: 移除开发环境下的更新检查逻辑

This commit is contained in:
2026-01-15 01:25:31 +07:00
parent 3557ec210a
commit 40afcb4b32

View File

@@ -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();