diff --git a/sdk/ext/CloudData.class.js b/sdk/ext/CloudData.class.js index 0498d74caa217707fb23e0c71f9f57d03ba8355b..b2c9703ddebc663756df1f61f190ebe98474bdb1 100644 --- a/sdk/ext/CloudData.class.js +++ b/sdk/ext/CloudData.class.js @@ -108,7 +108,10 @@ export default class CloudData { } console.timeEnd('find-no-index-' + this.constructor.name) } - this.__afterFind?.({param,res}) + if(this.__afterFind){ + res = this.__afterFind?.({param,res}) + } + return res } /** @description 查询数据,先从本地查找,如果没有则从云端拉取