Commit b6689c56 authored by 田翔's avatar 田翔

fix: 防止出现图片为空问题

parent 9068b4b8
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "4.5.5", "version": "4.5.6",
"description": "4.5.5 数据字典改为存名称", "description": "4.5.6 防止出现图片为空问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -18,7 +18,7 @@ const FileView = (props) => { ...@@ -18,7 +18,7 @@ const FileView = (props) => {
const site = window.globalConfig?.userInfo?.site || window.globalConfig?.userInfo?.LocalSite const site = window.globalConfig?.userInfo?.site || window.globalConfig?.userInfo?.LocalSite
const { value, fileType, title, preview, download } = props const { value, fileType, title, preview, download } = props
let fileList = value ? value.split(',') : [] let fileList = value ? value.split(',').filter(v => v) : []
const [visible, setVisible] = useState(false) const [visible, setVisible] = useState(false)
const [viewVisible, setViewVisible] = useState(false) const [viewVisible, setViewVisible] = useState(false)
const [showFile, setShowFile] = useState({ fileType: '', filePath: '' }) const [showFile, setShowFile] = useState({ fileType: '', filePath: '' })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment