File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,13 @@ export default {
216216 },
217217 // go ro router path
218218 gotoRouter (item ) {
219- this .$router
220- .push ({ path: ` /${ this .currentDocLang }${ item .path } ` })
221- .catch (() => {});
219+ if (item .isRouter ) {
220+ this .$router
221+ .push ({ path: ` /${ this .currentDocLang }${ item .path } ` })
222+ .catch (() => {});
223+ } else {
224+ window .open (item .path , " _blank" );
225+ }
222226 },
223227 activeMenuClass (item ) {
224228 let result = " " ;
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ export default {
1414 path : "/demo" ,
1515 isRouter : true ,
1616 } ,
17+ {
18+ name : "更新日志" ,
19+ path : "https://github.com/Happy-Coding-Clans/vue-easytable/releases" ,
20+ isRouter : false ,
21+ } ,
1722 ] ,
1823 anchorCatalogTitle : "目录" ,
1924 // 组件配置多语言跟着文档语言环境走
@@ -49,6 +54,11 @@ export default {
4954 path : "/demo" ,
5055 isRouter : true ,
5156 } ,
57+ {
58+ name : "Changelog" ,
59+ path : "https://github.com/Happy-Coding-Clans/vue-easytable/releases" ,
60+ isRouter : false ,
61+ } ,
5262 ] ,
5363 anchorCatalogTitle : "Contents" ,
5464 compLang : enUS ,
You can’t perform that action at this time.
0 commit comments