Unverified Commit e7bf47f8 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Fix] fix resource tree cannot refresh (#3406)

Signed-off-by: 's avatarZzm0809 <934230207@qq.com>
parent 2fd0baa9
...@@ -233,10 +233,9 @@ const ResourceOverView: React.FC<connect> = (props) => { ...@@ -233,10 +233,9 @@ const ResourceOverView: React.FC<connect> = (props) => {
await handleOption(API_CONSTANTS.RESOURCE_CREATE_FOLDER, l('right.menu.createFolder'), { await handleOption(API_CONSTANTS.RESOURCE_CREATE_FOLDER, l('right.menu.createFolder'), {
...value, ...value,
pid pid
}); }, ()=> handleModalCancel());
setResourceState((prevState) => ({ ...prevState, editOpen: false }));
} else if (editModal === 'rename') { } else if (editModal === 'rename') {
await handleOption(API_CONSTANTS.RESOURCE_RENAME, l('right.menu.rename'), { ...value, pid }); await handleOption(API_CONSTANTS.RESOURCE_RENAME, l('right.menu.rename'), { ...value, pid },()=> handleModalCancel());
} }
}; };
const handleUploadCancel = async () => { const handleUploadCancel = async () => {
......
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