Commit ee3894e8 by zhaochengxiang

bug fix

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