Aaron Kong

Results 1 comments of Aaron Kong

> Modal使用了component子组件模式的情况,close时,没有调用子组件的$destroy(),会导致在特定情况下的的dom残留。比如子组件中出现了Select。 > > https://github.com/heyui/heyui/blob/a6fd193365fbe2cab92f91fc19b0b376a78232cc/src/plugins/notify/index.js#L306 同样的问题 + 1 使用Modal组件时,弹框通过点击mask或关闭按钮或通过$emit('close')关闭时,未触发beforeDestory/destoryed钩子,导致在这两个生命周期中的代码未被执行,比如移除监听、移除定时器等,引起内存泄漏等问题。 ```js // xxx-modal.vue // ... mounted() { this.callListener = G.addlistener('answerCall', (iEnumCallID) => { this.recordCall(iEnumCallID); }); }, destroyed() { // 未被执行 G.removelistener(this.callListener);...