diff --git a/src/pages/card/gate/index.jsx b/src/pages/card/gate/index.jsx index f3aeb29..8bf9e75 100644 --- a/src/pages/card/gate/index.jsx +++ b/src/pages/card/gate/index.jsx @@ -65,9 +65,11 @@ const Gate = () => { // 及时销毁 editor ,重要! useEffect(() => { - if (editor == null) return + if (editor == null) return; + console.log('销毁'); editor.destroy() setEditor(null) + setHtml(''); }, [isModalOpen]) /**