Skip to content

Commit

Permalink
fix: 优化钩子cycleEnd逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
1977474741 authored Dec 6, 2023
1 parent 0b9417e commit cac0689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spa-custom-hooks/hook-entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cac0689

Please sign in to comment.