Closed jianghai closed 12 months ago
查看是否传递了太短的 timeout 默认是 30s
domToPng({
timeout: 30000,
})
查看是否存在加载的网络请求
如果完全没加载,可能需要提供完整的测试样本
I had the same issue, I don't know why it may happens. So I configured the domToPng not to use cache by adding:
fetch: { bypassingCache: true },
background-image: url('https://xx')