图片地址

This commit is contained in:
caishi 2023-10-18 09:50:50 +08:00
parent 42a37a3189
commit 716285f045
2 changed files with 2 additions and 2 deletions

View File

@ -561,7 +561,7 @@ async function JoinTeams(name: any) {
<Spin spinning={loading.effects['competitions/getHeader']} >
<div style={{ height: '355px', width: "800px" }}>
{
HeaderDetail?.avatar_url && HeaderDetail?.avatar_url !== null && <img style={{ height: '355px', width: '800px' }} src={ENV.IMG_SERVER + '/' + HeaderDetail?.avatar_url} />
HeaderDetail?.avatar_url && HeaderDetail?.avatar_url !== null && <img style={{ height: '355px', width: '800px' }} src={ HeaderDetail?.avatar_url } />
}
{
!HeaderDetail?.avatar_url && HeaderDetail?.avatar_url == null && <img style={{ height: '355px', width: '800px' }} src={ENV.IMG_SERVER + `/images/educoder/competitions/mainbanner.jpg`} />

View File

@ -456,7 +456,7 @@ const competitionsIndexPage: FC<PageProps> = ({
className={styles.divimg}
src={
item && item.image
? `${ENV.IMG_SERVER}/` + item.image
? item.image
: mainbannerBg
}
/>