Commit 93419754 by zhaochengxiang

资产草稿路径不允许跳转

parent d96d3dfb
...@@ -1255,9 +1255,10 @@ const AssetAction = (props) => { ...@@ -1255,9 +1255,10 @@ const AssetAction = (props) => {
> >
<span> <span>
{ {
(assetPaths??[]).length > 0 && <a onClick={() => { jumpToPath(assetPaths[0]); }}> (assetPaths??[]).length > 0 && (
(reference===AssetDraftReference) ? <span>{assetPaths[0].dataAssetName||''}</span> : <a onClick={() => { jumpToPath(assetPaths[0]); }}>
{assetPaths[0].dataAssetName||''} {assetPaths[0].dataAssetName||''}
</a> </a> )
} }
{ {
(assetPaths??[]).length > 0 && (publishedAssetPaths??[]).length > 0 && assetPaths[0].dirId!==publishedAssetPaths[0].dirId && <Typography.Text className='ml-2 pointer' type='danger' onClick={() => { jumpToPath(publishedAssetPaths[0]) }}> (assetPaths??[]).length > 0 && (publishedAssetPaths??[]).length > 0 && assetPaths[0].dirId!==publishedAssetPaths[0].dirId && <Typography.Text className='ml-2 pointer' type='danger' onClick={() => { jumpToPath(publishedAssetPaths[0]) }}>
......
...@@ -70,7 +70,7 @@ const AssetDetailPage = (props)=>{ ...@@ -70,7 +70,7 @@ const AssetDetailPage = (props)=>{
return( return(
<div className='asset-detail position-relative'> <div className='asset-detail position-relative'>
<div className='detail-header'> <div className='detail-header'>
<span style={{ fontSize: 16, fontWeight: 'bold', color: '#000' }}>资产目录详情</span> <span style={{ fontSize: 16, fontWeight: 'bold', color: '#000' }}>{isDraft?'资产目录草稿详情':'资产目录详情'}</span>
</div> </div>
<Spin spinning={loading}> <Spin spinning={loading}>
<div className='detail-container'> <div className='detail-container'>
......
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