From 91ee00122086e398cf605918abd2a967cac1ccd4 Mon Sep 17 00:00:00 2001 From: linju Date: Fri, 8 Nov 2024 21:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=9B=A03.4.33=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BC=95=E8=B5=B7=E7=9A=84=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=BE=A4=E8=81=8A=E7=9A=84=E6=88=90=E5=91=98=E6=89=93=E5=BC=80?= =?UTF-8?q?=E7=9A=84=E6=96=B0=E4=BC=9A=E8=AF=9D=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/ext/CloudData.class.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/ext/CloudData.class.js b/sdk/ext/CloudData.class.js index 0498d74..b2c9703 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 查询数据,先从本地查找,如果没有则从云端拉取 -- GitLab