Commit 63a69a9f by zhaochengxiang

增加资产路径跳转

parent 0caec0d3
...@@ -279,6 +279,19 @@ const AssetTable = (props) => { ...@@ -279,6 +279,19 @@ const AssetTable = (props) => {
} }
_metadataIndex = `element${index}`; _metadataIndex = `element${index}`;
} else if (name === '资产路径') {
params.render = (text, record) => {
return (
<a onClick={()=>{
let event = new Event('storage');
event.key = 'assetDirChange';
event.dirId = record.dirId||'';
window?.dispatchEvent(event);
}}>
{text||''}
</a>
);
}
} }
_columns.push(params); _columns.push(params);
......
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