diff --git a/web/src/pages/Edit/components/NavigatorToolbar.vue b/web/src/pages/Edit/components/NavigatorToolbar.vue index 52e4ae4f..5916e7f4 100644 --- a/web/src/pages/Edit/components/NavigatorToolbar.vue +++ b/web/src/pages/Edit/components/NavigatorToolbar.vue @@ -72,9 +72,16 @@ >
- - - + +
+ + Github + 使用文档 + 开发文档 + 官方网站 + 意见反馈 + +
@@ -116,7 +123,7 @@ export default { computed: { ...mapState(['isDark']) }, - created () { + created() { this.lang = getLang() }, methods: { @@ -143,6 +150,33 @@ export default { toggleDark() { this.setIsDark(!this.isDark) + }, + + handleCommand(command) { + let url = '' + switch (command) { + case 'github': + url = 'https://github.com/wanglin2/mind-map' + break + case 'helpDoc': + url = 'https://wanglin2.github.io/mind-map/#/help/zh/' + break + case 'devDoc': + url = 'https://wanglin2.github.io/mind-map/#/doc/zh/introduction/' + break + case 'site': + url = 'https://wanglin2.github.io/mind-map/#/index' + break + case 'issue': + url = 'https://github.com/wanglin2/mind-map/issues/new' + break + default: + break + } + const a = document.createElement('a') + a.href = url + a.target = '_blank' + a.click() } } }