forked from Gitlink/forgeplus-react
修复部分页面图片不显示问题
This commit is contained in:
parent
bbe57de424
commit
eb25f7f339
|
@ -16,6 +16,7 @@ export function getImageUrl(path) {
|
|||
if (isDev) {
|
||||
return `${local}/${path}`
|
||||
}
|
||||
!path.startsWith('/') && (path = '/'.concat(path));
|
||||
return `${path}`;
|
||||
}
|
||||
|
||||
|
|
|
@ -754,7 +754,7 @@ class NewHeader extends Component {
|
|||
{
|
||||
settings && settings.add && settings.add.map((item,key)=>{
|
||||
return(
|
||||
<li><a href={item.url}>{item.name}</a></li>
|
||||
<li key={key}><a href={item.url}>{item.name}</a></li>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue