美文网首页前端踩坑之路
vue使用百度地图报错Uncaught DOMException

vue使用百度地图报错Uncaught DOMException

作者: 我不听故事丶aaaaaa | 来源:发表于2020-12-12 14:06 被阅读0次

使用百度地图偶尔会出现Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0这样的报错。

网上查阅得知是因为地图容器的宽高需要使用行内样式设置,

备注一下 谨防忘记

相关文章

网友评论

    本文标题:vue使用百度地图报错Uncaught DOMException

    本文链接:https://www.haomeiwen.com/subject/lpgegktx.html