Skip to content

Commit 835fbdb

Browse files
author
jack
committed
fix getList when list is empty
1 parent 7d78c38 commit 835fbdb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/recycle-context.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,9 @@ RecycleContext.prototype.getTotalHeight = function () {
574574
}
575575
// 返回完整的列表数据
576576
RecycleContext.prototype.getList = function () {
577+
if (!recycleData[this.id]) {
578+
return [];
579+
}
577580
return recycleData[this.id].list
578581
}
579582
module.exports = RecycleContext

0 commit comments

Comments
 (0)