Skip to content

Commit

Permalink
fix: 修复跳转文档链接未拼接当前语言问题
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 21227
  • Loading branch information
hyunfa authored and wyyalt committed Oct 18, 2024
1 parent 92add81 commit a7de0c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/common/navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,11 @@ export default class NodemanNavigation extends Mixins(routerBackMixin) {
* 系统外链
*/
private handleGotoLink(item: IUserItem) {
const convertLanguage = this.language === 'en' ? 'EN' : 'ZH';
switch (item.id) {
case 'DOC':
// 使用字符串替换方法来插入语言标识
item.href = item.href?.replace('/markdown/', `/markdown/${convertLanguage}/`);
case 'FAQ':
item.href && window.open(item.href);
break;
Expand Down

0 comments on commit a7de0c5

Please sign in to comment.