Skip to content

Commit 39cfca8

Browse files
committed
fix 示例中英链接跳转错误问题
1 parent 2623235 commit 39cfca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ $(document).ready(function () {
8787
} else if(window.isLocal) {
8888
href = window.location.origin + pathname.replace(/(([^\/]*\/){3})([^\/]*)/,'$1$3/en')
8989
}else {
90-
//href = window.location.origin + pathname.replace(/([^\/]*\/){1}([^\/]*)/, '/en/$2');
91-
href = window.location.origin + pathname.replace(/([^\/]*\/){1}([^\/]*)/, '/$2/en');
90+
href = window.location.origin + pathname.replace(/([^\/]*\/){1}([^\/]*)/, '/en/$2');
91+
//href = window.location.origin + pathname.replace(/([^\/]*\/){1}([^\/]*)/, '/$2/en');
9292
}
9393

9494
}

0 commit comments

Comments
 (0)