Commit cc6b1e22 by tyk

1

parent a128aaf9
...@@ -171,6 +171,12 @@ export const dynamicRoutes = [ ...@@ -171,6 +171,12 @@ export const dynamicRoutes = [
}, },
]; ];
if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
console.log('手机端')
} else {
console.log('pc端')
}
// 防止连续点击多次路由报错 // 防止连续点击多次路由报错
let routerPush = Router.prototype.push; let routerPush = Router.prototype.push;
let routerReplace = Router.prototype.replace; let routerReplace = Router.prototype.replace;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment