diff --git a/packages/fineui/src/core/wrapper/layout/layout.card.js b/packages/fineui/src/core/wrapper/layout/layout.card.js index f2f717938..d1247e4e3 100644 --- a/packages/fineui/src/core/wrapper/layout/layout.card.js +++ b/packages/fineui/src/core/wrapper/layout/layout.card.js @@ -109,7 +109,10 @@ export class CardLayout extends Layout { const child = this._children[this._getChildName(cardName)]; this._deleteCardByName(cardName); - child && child._destroy(); + if (child) { + child._destroy(); + child = null; + } } addCardByName(cardName, cardItem) {