From cac06895615159848d0b66a05c693ea6fac476e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B9=85=E9=B9=85=E9=B9=85?= <1977474741@qq.com> Date: Wed, 6 Dec 2023 06:12:42 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=92=A9=E5=AD=90cycl?= =?UTF-8?q?eEnd=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/spa-custom-hooks/hook-entity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spa-custom-hooks/hook-entity.js b/lib/spa-custom-hooks/hook-entity.js index b0f3da5..29d1653 100644 --- a/lib/spa-custom-hooks/hook-entity.js +++ b/lib/spa-custom-hooks/hook-entity.js @@ -40,7 +40,7 @@ export default class hookEntity { cycleEnd() { if (!this.hit) return; this.hit = false; - this.__customhook && this.__customhook.resetExecute(this.destroy); + this.__customhook && this.destroy && this.__customhook.resetExecute(this.destroy); } watchAttr(cb) { try {