Browse Source

fix(): UploadBtn状态更新处理

develop
wanghx 1 year ago
parent
commit
5e451fa046
  1. 2
      src/components/ImportBtn/index.jsx

2
src/components/ImportBtn/index.jsx

@ -19,8 +19,8 @@ function ImportBtn(props) {
const handleUploadChange = (file, fileList, e) => { const handleUploadChange = (file, fileList, e) => {
if (file.file.status == 'done') {
setFileList(file.fileList) setFileList(file.fileList)
if (file.file.status == 'done') {
if (file.file.response.status == 20000) { if (file.file.response.status == 20000) {
setMsg(file.file.response?.message) setMsg(file.file.response?.message)
} else { } else {

Loading…
Cancel
Save