创客空间访问报错
This commit is contained in:
parent
eb25f7f339
commit
320e619206
|
@ -16,7 +16,7 @@ export function getImageUrl(path) {
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
return `${local}/${path}`
|
return `${local}/${path}`
|
||||||
}
|
}
|
||||||
!path.startsWith('/') && (path = '/'.concat(path));
|
path && !path.startsWith('/') && (path = '/'.concat(path));
|
||||||
return `${path}`;
|
return `${path}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,9 +42,9 @@ export default (props) => {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className="list-other">
|
<div className="list-other">
|
||||||
<span className="user-box mr30" onClick={() => { goUser(item.user.login) }}>
|
<span className="user-box mr30" onClick={() => { goUser(item.user && item.user.login) }}>
|
||||||
<img alt="" className="head-log-small" src={getImageUrl(item.user.logo)} />
|
<img alt="" className="head-log-small" src={getImageUrl(item.user && item.user.logo)} />
|
||||||
<span>{item.user.nickname || item.user.login}</span>
|
<span>{(item.user && item.user.nickname) || (item.user && item.user.login)}</span>
|
||||||
</span>
|
</span>
|
||||||
<span className="font-14 mr30"><i className="iconfont icon-dianjiliang mr3 font-12" />{item.visits || 0}</span>
|
<span className="font-14 mr30"><i className="iconfont icon-dianjiliang mr3 font-12" />{item.visits || 0}</span>
|
||||||
<span className="font-14 mr30"><Icon type="user" /><span className="color-orange">{item.papersCount || 0}</span>人参与</span>
|
<span className="font-14 mr30"><Icon type="user" /><span className="color-orange">{item.papersCount || 0}</span>人参与</span>
|
||||||
|
|
Loading…
Reference in New Issue