提交 b3a5b79c authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复视频模态框关闭时未重置表单字段的问题

上级 00e25eb6
...@@ -8,7 +8,7 @@ import { findNodeWithParent, fontSizeList } from '../utils/setting' ...@@ -8,7 +8,7 @@ import { findNodeWithParent, fontSizeList } from '../utils/setting'
import GalleryFormItem from './galleryItem' import GalleryFormItem from './galleryItem'
const randomOne = Math.random().toString(16).substring(2, 10) const randomOne = Math.random().toString(16).substring(2, 10)
const GalleryModal = props => { const GalleryModal = (props, ref) => {
const { const {
editor, editor,
galleryInfo, galleryInfo,
......
...@@ -23,7 +23,6 @@ const VideoModal = (props, ref) => { ...@@ -23,7 +23,6 @@ const VideoModal = (props, ref) => {
useEffect(() => { useEffect(() => {
if (!visible) { if (!visible) {
setVideoUrl('') setVideoUrl('')
form.resetFields()
} }
}, [visible]) }, [visible])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论