From 8e622d6a1d07937cd654364748b52e15a50c67d8 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 14 五月 2025 09:14:43 +0800 Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop --- rsf-admin/src/page/components/ImportModal.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rsf-admin/src/page/components/ImportModal.jsx b/rsf-admin/src/page/components/ImportModal.jsx index 703a018..63c2edf 100644 --- a/rsf-admin/src/page/components/ImportModal.jsx +++ b/rsf-admin/src/page/components/ImportModal.jsx @@ -22,7 +22,7 @@ import MatnrList from '../basicInfo/matnr/MatnrList'; import request from '@/utils/request' -const ImportModal = ({ open, onClose, importTemp, useCodeImport, onceBatch = 10, value, parmas = {} }) => { +const ImportModal = ({ open, onClose, importTemp, useCodeImport, onceBatch = 10, value, parmas = {}}) => { const refresh = useRefresh(); const translate = useTranslate(); @@ -57,17 +57,17 @@ } form.append('file', file); const { data: { code, data, msg } } = await request.post(`/${value}/import`, form) - if (code === 200) { handleClose() - } else { notify(msg); - + refresh() + } else { + handleClose() + notify(msg); + refresh() } }; - - const handleClose = () => { reset(); -- Gitblit v1.9.1