Skip to content

Commit

Permalink
fix: 回退链接拼接的修改
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 21268
  • Loading branch information
hyunfa authored and wyyalt committed Oct 18, 2024
1 parent a7de0c5 commit f61c942
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/src/components/common/navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,8 @@ 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 f61c942

Please sign in to comment.