Skip to content

Commit

Permalink
在版本选择列表中,通过xxx(latest)取代版本名
Browse files Browse the repository at this point in the history
  • Loading branch information
luanwenfei-venus authored Jan 5, 2024
1 parent cf24ca3 commit 6edf266
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/.vuepress/theme/components/NavLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ export default {
}
}
const tmpVersionArr = [latestVersionText, ...versions].filter((tmpV) => {
return tmpV !== versionText;
// 判断可选择版本列表中1、不包含当前已选中版本 2、不包含最新版本,最新版本名用xxx(latest)取代了,所以这里可以去除
return tmpV !== versionText && tmpV !== versions[0];
});
this.versionDropdown = {
text: versionText,
Expand Down

0 comments on commit 6edf266

Please sign in to comment.