Commit ee3894e8 by zhaochengxiang

bug fix

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