13-panorama onUnmounted周期未卸载监听
wangyingjie123 opened this issue · 0 comments
wangyingjie123 commented
未在onUnmounted 移除掉事件监听
onUnmounted(() => {
window.removeEventListener('resize', resizeFun);
window.cancelAnimationFrame(rafId);
});
wangyingjie123 opened this issue · 0 comments
未在onUnmounted 移除掉事件监听
onUnmounted(() => {
window.removeEventListener('resize', resizeFun);
window.cancelAnimationFrame(rafId);
});