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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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