let title = (
<span>{menu.meta.title}</span>
)
if (menu.path === '/business/BusTaskListForMe') {
title = (
<span>{menu.meta.title} <Badge count={this.countData.myTaskNum} /></span>
)
}else if (menu.path === '/business/TodoList') {
title = (
<span>{menu.meta.title} <Badge count={this.countData.unfinishedTaskNum} /></span>
)
}else if (menu.path === '/business/DoneList') {
title = (
<span>{menu.meta.title} <Badge count={this.countData.finishedTaskNum} /></span>
)
}
return (
<Item {...{ key: menu.path }}>
<tag {...{ props, attrs }}>
{this.renderIcon(menu.meta.icon)}
{title}
</tag>
</Item>
)