From ed839220429ad90d25e1a01144bb584b532a014e Mon Sep 17 00:00:00 2001 From: nemo-shen Date: Wed, 21 Apr 2021 09:45:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(Cli):=20windows=E7=B3=BB=E7=BB=9F=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E5=B7=A6=E5=8F=B3=E6=96=B9=E5=90=91=E9=94=AE=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E5=AF=BC=E8=88=AA=20(#8588)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: nemo --- packages/vant-cli/site/desktop/components/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/vant-cli/site/desktop/components/index.vue b/packages/vant-cli/site/desktop/components/index.vue index 1160c1351..2a3f120a8 100644 --- a/packages/vant-cli/site/desktop/components/index.vue +++ b/packages/vant-cli/site/desktop/components/index.vue @@ -25,7 +25,7 @@ import DocContainer from './Container'; import DocSimulator from './Simulator'; export default { - name: 'van-doc', + name: 'VanDoc', components: { DocNav, @@ -83,6 +83,10 @@ export default { }, keyboardNav(direction) { + if (/win(32|64)/.test(navigator.userAgent.toLocaleLowerCase())) { + return; + } + const nav = direction === 'prev' ? this.leftNav : this.rightNav; if (nav.path) { this.$router.push(this.base + nav.path);