router.beforeEach((to, from, next) => {
        if (navigator.userAgent.indexOf('MSIE') > -1 && to.path === 'path') {//path:不兼容组件所在路由
    alert(‘组件不兼容IE10及以下浏览器,请使用更高版本的浏览器查看', '浏览器不兼容通知’)
        } else {
            next();
        }
});
posted on 2020-03-06 10:52  胡逗逗  阅读(621)  评论(0)    收藏  举报