Skip to content

Commit

Permalink
fix: 修复如果没传backgroundImageUrl 会导致 url("undefined") 发送一次请求 (ant-design…
Browse files Browse the repository at this point in the history
  • Loading branch information
NoirVoider authored Sep 4, 2024
1 parent b16568e commit 8acaa16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/form/src/layouts/LoginFormPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ export function LoginFormPage<T = Record<string, any>>(
style={{
...style,
position: 'relative',
backgroundImage: `url("${backgroundImageUrl}")`,
backgroundImage: backgroundImageUrl
? `url("${backgroundImageUrl}")`
: undefined,
}}
>
{backgroundVideoUrl ? (
Expand Down

0 comments on commit 8acaa16

Please sign in to comment.