z-song / demo.laravel-admin.org

Source code of official http://demo.laravel-admin.org website.
507 stars 250 forks source link

引用插件openMap出现错误 #14

Closed kingsollyu closed 6 years ago

kingsollyu commented 6 years ago

环境:os.x 1.13.2, chrome, laravel-admin-1.5.x dev

我引用了示例代码中的openMap.php然后按照UserController.php的使用方法,同时在bootstrap.php中添加openMap加载代码,结果在我的网站上出现了下面的错误,并且界面中不显示和demo中位置按钮,请问该如何解决?

A parser-blocking, cross site (i.e. different eTLD+1) script, 
http://open.map.qq.com/apifiles/2/4/85/main.js, is invoked via document.write. 
The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. 
If blocked in this page load, it will be confirmed in a subsequent console message. 
See https://www.chromestatus.com/feature/5718547946799104 for more details.
kingsollyu commented 6 years ago

问题找到了,是自己的问题,在bootstrap.php需要引入openMap.php的路径,导入之后问题解决。