From 5e244277abbb34e572b2a908045d5d997db25fbc Mon Sep 17 00:00:00 2001 From: zhangminghua Date: Thu, 6 Apr 2023 13:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=85=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/metadataManagement/containers/filesTable.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/metadataManagement/containers/filesTable.js b/web/client/src/sections/metadataManagement/containers/filesTable.js index 9fa5beb..04c9a73 100644 --- a/web/client/src/sections/metadataManagement/containers/filesTable.js +++ b/web/client/src/sections/metadataManagement/containers/filesTable.js @@ -156,7 +156,7 @@ const FilesTable = (props) => { width: '29%', ellipsis: true }, { - title: '类型', + title: '文件类型', dataIndex: 'type', key: 'type', width: '10%', @@ -275,8 +275,10 @@ const FilesTable = (props) => { obj.size = values.files[0].size; obj.fileName = values.files[0].url.split('\\').pop(); } - dispatch(metadataManagement.postMetadataFiles(obj)).then(() => { - onSearch(); setModalVisible(false); + dispatch(metadataManagement.postMetadataFiles(obj)).then(res => { + if (res.success) { + onSearch(); setModalVisible(false); + } }); } else { obj = { catalog: resourceCatalogId, catalogKey: resourceCatalogKey, ...values }