Skip to content

Commit af16d95

Browse files
pandavipsBBBboys
andauthored
🐞 fix:判断对象value为null的case (hilongjw#508)
Co-authored-by: luopan <919401990@qq.com>
1 parent 96cdad5 commit af16d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lazy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class Lazy {
486486
value: TvalueFormatterParam
487487
)
488488
{
489-
if (typeof value === 'object') {
489+
if (isObject(value)) {
490490
if (!value.src && !this.options.silent) console.error('Vue Lazyload warning: miss src with ' + value)
491491
return {
492492
src: value.src,
@@ -504,4 +504,4 @@ class Lazy {
504504
}
505505
}
506506

507-
export default Lazy
507+
export default Lazy

0 commit comments

Comments
 (0)