mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
parent
9ef870e491
commit
07f138a308
@ -82,6 +82,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
keyboardNav(direction) {
|
keyboardNav(direction) {
|
||||||
|
if (/win(32|64)/.test(navigator.userAgent.toLocaleLowerCase())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const nav = direction === 'prev' ? this.leftNav : this.rightNav;
|
const nav = direction === 'prev' ? this.leftNav : this.rightNav;
|
||||||
if (nav.path) {
|
if (nav.path) {
|
||||||
this.$router.push(this.base + nav.path);
|
this.$router.push(this.base + nav.path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user