Skip to content

Commit

Permalink
修复了 uni-app 包 app 端可能出现无法读取 lazyLoad 的问题 jin-yufeng#513
Browse files Browse the repository at this point in the history
  • Loading branch information
jin-yufeng committed May 13, 2023
1 parent 38402ca commit 8e50ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uni-app/components/mp-html/node/node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export default {
* @description 检查是否所有图片加载完毕
*/
checkReady () {
if (!this.root.lazyLoad) {
if (this.root && !this.root.lazyLoad) {
this.root._unloadimgs -= 1
if (!this.root._unloadimgs) {
setTimeout(() => {
Expand Down

0 comments on commit 8e50ea7

Please sign in to comment.