fix(cli): version selection jump undefiend (#5620)

This commit is contained in:
xihe
2020-02-04 19:36:10 +08:00
committed by GitHub
parent ddbfefab5c
commit e99042a471

View File

@@ -127,7 +127,9 @@ export default {
}, },
onSwitchVersion(version) { onSwitchVersion(version) {
location.href = version.link; if (version.link) {
location.href = version.link;
}
}, },
}, },
}; };