docs: adjust version order (#22727)

This commit is contained in:
xrkffgg 2020-03-30 13:30:14 +08:00 committed by GitHub
parent e719440307
commit 24ae9ebd1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ class Header extends React.Component<HeaderProps, HeaderState> {
themeConfig,
intl: { locale },
} = this.props;
const docVersions = { ...themeConfig.docVersions, [antdVersion]: antdVersion };
const docVersions = { [antdVersion]: antdVersion, ...themeConfig.docVersions };
const versionOptions = Object.keys(docVersions).map(version => (
<Option value={docVersions[version]} key={version}>
{version}