if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE9.0"){ xxxxxxx }else{ this.props.history.push(window.AppConf.routeRootPath)} }
原文:https://blog.csdn.net/hilary_front/article/details/78731017
如图,head里面加上下面两句即可