fix: 修复中文模式下,更新日志的 Head 中 Menu 显示 (#20853)

This commit is contained in:
xrkffgg 2020-01-13 13:45:05 +08:00 committed by 偏右
parent 2dc7b3fc17
commit f7ab4e50af

View File

@ -149,7 +149,7 @@ class Header extends React.Component {
.slice(0, -1)
.join('/');
let activeMenuItem = module || 'home';
if (location.pathname === 'changelog') {
if (location.pathname === 'changelog' || location.pathname === 'changelog-cn') {
activeMenuItem = 'docs/react';
}