mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
feat: use StaticBaseUrl in frontend
This commit is contained in:
@ -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>
|
||||
),
|
||||
|
Reference in New Issue
Block a user