Commit 055a67b0 by zhaochengxiang

资产浏览编辑资产

parent c05a17c5
...@@ -52,11 +52,7 @@ const AssetAction = (props) => { ...@@ -52,11 +52,7 @@ const AssetAction = (props) => {
getAssetPaths(); getAssetPaths();
getResourceRelations(); getResourceRelations();
if (readOnly) { getAsset();
getUserElements();
} else {
getAsset();
}
} else { } else {
setMetadataId(''); setMetadataId('');
......
...@@ -16,7 +16,8 @@ const AssetDetail = (props)=>{ ...@@ -16,7 +16,8 @@ const AssetDetail = (props)=>{
useEffect(() => { useEffect(() => {
if ((id||'') !== '') { if ((id||'') !== '') {
getUserElements(); // getUserElements();
getAsset([]);
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [ id ]) }, [ id ])
......
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