This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
bpa
/
BPA.KitChen.Web
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1
Wiki
Activity
Browse Source
修复富文本未清空的问题
tags/小炒逻辑变更前
yangwenhua
2 years ago
parent
f1e4df51ce
commit
8642a7d552
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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])
/**
Write
Preview
Loading…
Cancel
Save