引入微前端qiankun遇到的一个问题 --disable-ipc-flooding-protection
·
问题:Throttling navigation to prevent the browser from hanging. See https://crbug.com/882238. Command line switch --disable-ipc-flooding-protection can be used to bypass the protection
原因:
我在index.html页面中有这样一段代码,将其注释掉就好了
<script>
$(document).ready(function () {
history.pushState(null, null, document.URL);
$(window).on('popstate', function () {
history.pushState(null, null, document.URL);
});
$(window).on('hashchange', function () {
history.pushState(null, null, document.URL);
});
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
});
</script>
We're sorry but ***** doesn't work properly without JavaScript enabled. Please enable it to continue
主应用的router的mode设置为hash,之前是history
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)