修复部分页面图片不显示问题

This commit is contained in:
unknown 2022-02-21 09:35:25 +08:00
parent bbe57de424
commit eb25f7f339
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ export function getImageUrl(path) {
if (isDev) {
return `${local}/${path}`
}
!path.startsWith('/') && (path = '/'.concat(path));
return `${path}`;
}

View File

@ -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>
)
})
}