Commit ee3894e8 by zhaochengxiang

bug fix

parent e6fc6631
...@@ -134,17 +134,14 @@ const ImportAssetDrawer = (props) => { ...@@ -134,17 +134,14 @@ const ImportAssetDrawer = (props) => {
setConfirmLoading(true); setConfirmLoading(true);
dispatch({ dispatch({
type: 'assetmanage.getDirectoryById', type: 'assetmanage.assetImport',
payload: { payload: {
dirId: nodeId, fileList: fileList,
params: {
dataAssetType: getAssetType(reference) dataAssetType: getAssetType(reference)
}
}, },
callback: data => { callback: data => {
console.log('path', data.path);
dispatch({
type: 'assetmanage.assetImport',
payload: { fileList: fileList, params: { parentPath: data?.path||'' } },
callback: data => {
setConfirmLoading(false); setConfirmLoading(false);
setFileList([]); setFileList([]);
getLogs(pageNum, pageSize); getLogs(pageNum, pageSize);
...@@ -154,11 +151,6 @@ const ImportAssetDrawer = (props) => { ...@@ -154,11 +151,6 @@ const ImportAssetDrawer = (props) => {
setConfirmLoading(false); setConfirmLoading(false);
} }
}); });
},
error: () => {
setConfirmLoading(false);
}
});
} }
const reset = () => { const reset = () => {
......
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