From f20748744a10d1b53443a72d3a01ee5c0fae2259 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 14 Aug 2023 09:27:59 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E5=8F=B3=E4=B8=8B=E8=A7=92?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B7=B3=E8=BD=AC=E7=9B=B8=E5=85=B3=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Edit/components/NavigatorToolbar.vue | 42 +++++++++++++++++-- 1 file changed, 38 insertions(+), 4 deletions(-) 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() } } }