feat: use StaticBaseUrl in frontend

This commit is contained in:
Yang Luo
2025-03-26 21:32:23 +08:00
parent 5417a90223
commit 4bee21f4a3
5 changed files with 9 additions and 9 deletions

View File

@ -137,10 +137,10 @@ class MfaAccountTable extends React.Component {
render: (text, record, index) => (
<Tooltip>
{text ? (
<Image width={36} height={36} preview={false} src={`https://cdn.casbin.org/img/social_${text.toLowerCase()}.png`}
fallback="https://cdn.casbin.org/img/social_default.png" alt={text} />
<Image width={36} height={36} preview={false} src={`${Setting.StaticBaseUrl}/img/social_${text.toLowerCase()}.png`}
fallback={`${Setting.StaticBaseUrl}/img/social_default.png`} alt={text} />
) : (
<Image width={36} height={36} preview={false} src={"https://cdn.casbin.org/img/social_default.png"} alt="default" />
<Image width={36} height={36} preview={false} src={`${Setting.StaticBaseUrl}/img/social_default.png`} alt="default" />
)}
</Tooltip>
),