mounted() { try{ isIOS= !!navigator.userAgent.match(/(i[^;]+;( U;)? CPU.+Mac OS X/) if(fn.isIOS){ window.history.pushState({}, "title", "#"); } }catch(e){ //TODO handle the exception } }