Commit 4ae33323 by 放生的三文鱼

修改资产浏览bug

parent 91cfe3ef
......@@ -78,7 +78,7 @@ const init = (ctx) => function (container, data, onClick) {
var option = {
title: {
text: ((data||[]).length>0) ? `${data[0]?.text||''} (${data[0]?.dataAssetAndSubDirCount})` : '',
text: ((data||[]).length>0) ? `${data[0]?.text||''}` : '',
left: 'center',
bottom: 10,
textStyle: {
......@@ -101,7 +101,7 @@ const init = (ctx) => function (container, data, onClick) {
},
series: [
{
name: ((data||[]).length>0) ? `${data[0]?.text||''} (${data[0]?.dataAssetAndSubDirCount})` : '',
name: ((data||[]).length>0) ? `${data[0]?.text||''}` : '',
type: 'treemap',
height: '85%',
visibleMin: 1,
......
......@@ -589,10 +589,7 @@ const AssetTree = (props) => {
<span
className={(item.level===1)?'title-color': 'text-color'}
>
{item.text}
{
viewSelectedKeyRef.current === 'dir' && <span>{` (${item.dataAssetAndSubDirCount})`}</span>
}
{item.text} <span>{item?.dataAssetAndSubDirCount?`(${item?.dataAssetAndSubDirCount})` :''}</span>
</span>
);
......
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