mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
parent
9ef870e491
commit
07f138a308
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user