refactor: skip update check in invalid version

pull/128/head
moonrailgun 2 years ago
parent 01a1a8c4a4
commit e94b3906ad

@ -27,6 +27,11 @@ export async function checkUpdate(): Promise<boolean> {
return true;
}
if (version === '0.0.0') {
console.warn('Current version not valid');
return true;
}
if (semver.gt(latestVersion, version)) {
// 有新版本
notification.info({

Loading…
Cancel
Save