Skip to content

Commit 1390f0a

Browse files
committed
add changelog in document
1 parent 72f392d commit 1390f0a

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

examples/src/comp/app.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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 = "";

examples/src/comp/locale/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)