Browse Source

修复富文本未清空的问题

tags/小炒逻辑变更前
yangwenhua 2 years ago
parent
commit
8642a7d552
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/pages/card/gate/index.jsx

+ 3
- 1
src/pages/card/gate/index.jsx View File

@@ -65,9 +65,11 @@ const Gate = () => {

// 及时销毁 editor ,重要!
useEffect(() => {
if (editor == null) return
if (editor == null) return;
console.log('销毁');
editor.destroy()
setEditor(null)
setHtml('');
}, [isModalOpen])

/**


Loading…
Cancel
Save