From 07f138a3083740f3bca63a36f0c61e3780181a5a Mon Sep 17 00:00:00 2001 From: nemo-shen Date: Wed, 21 Apr 2021 09:45:07 +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=AF=BC?= =?UTF-8?q?=E8=88=AA=20vant2=E7=89=88=E6=9C=AC=20(#8589)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联PR:#8588 --- packages/vant-cli/site/desktop/components/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/vant-cli/site/desktop/components/index.vue b/packages/vant-cli/site/desktop/components/index.vue index 363c66559..b02d44310 100644 --- a/packages/vant-cli/site/desktop/components/index.vue +++ b/packages/vant-cli/site/desktop/components/index.vue @@ -82,6 +82,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);