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 4411a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
[
'@babel/preset-env',
{
targets: '> 0.1%, last 2 versions, Firefox ESR, not dead',
targets: ['IE >= 8'],
},
],
],
Expand Down

0 comments on commit 4411a69

Please sign in to comment.