Skip to content

Commit

Permalink
fix: 登录checkbox默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-gui committed Jul 4, 2023
1 parent dd4f54a commit c78ebd4
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/views/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,20 @@ function Login() {
style={{ borderColor: theme.primaryColor }}
/>
</Form.Item>
<Form.Item name="remember" valuePropName="checked">
<ConfigProvider
theme={{
token: {
colorBgContainer: 'transparent',
colorBorder: theme.primaryColor
}
}}
>

<ConfigProvider
theme={{
token: {
colorBgContainer: 'transparent',
colorBorder: theme.primaryColor
}
}}
>
<Form.Item name="remember" valuePropName="checked">
<Checkbox>{t('记住账号')}</Checkbox>
</ConfigProvider>
</Form.Item>
</Form.Item>
</ConfigProvider>

<Button
type="primary"
className="w-full h-10"
Expand Down

0 comments on commit c78ebd4

Please sign in to comment.