huiyan-fe / react-bmapgl

基于百度地图JavaScript GL版API封装的React组件库
http://huiyan.baidu.com/github/react-bmapgl/
MIT License
115 stars 21 forks source link

在qiankun里面集成时,会报出一个Failed to execute 'write' on 'Document' #46

Open HZZformGD opened 2 years ago

HZZformGD commented 2 years ago

貌似是在请求 //api.map.baidu.com/apixxxx 之后请求//api.map.baidu.com/getscript 返回的脚本里使用了write 我是异步加载的最后报了下面的错误

Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.