🐛 fix: Setting form submit
parent
453670c2be
commit
340ca92518
File diff suppressed because one or more lines are too long
|
|
@ -167,6 +167,7 @@ const SettingForm = memo(() => {
|
|||
|
||||
return (
|
||||
<Form
|
||||
id="theme_settings"
|
||||
initialValues={setting}
|
||||
items={[theme]}
|
||||
onFinish={onFinish}
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ const SettingForm = memo(() => {
|
|||
|
||||
return (
|
||||
<Form
|
||||
id="theme_settings"
|
||||
initialValues={setting}
|
||||
items={[experimental, promptTextarea]}
|
||||
onFinish={onFinish}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const Footer = memo(() => {
|
|||
{t('setting.button.reset')}
|
||||
</Button>
|
||||
</Popconfirm>
|
||||
<Button htmlType="submit" style={buttonStyle} type="primary">
|
||||
<Button form="theme_settings" htmlType="submit" style={buttonStyle} type="primary">
|
||||
{t('setting.button.submit')}
|
||||
</Button>
|
||||
</Flexbox>
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ const SettingForm = memo(() => {
|
|||
|
||||
return (
|
||||
<Form
|
||||
id="theme_settings"
|
||||
initialValues={setting}
|
||||
items={[layout, promptTextarea]}
|
||||
onFinish={onFinish}
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ const SettingForm = memo(() => {
|
|||
|
||||
return (
|
||||
<Form
|
||||
id="theme_settings"
|
||||
initialValues={setting}
|
||||
items={[quickSettingSidebar, extraNetworkSidebar]}
|
||||
onFinish={onFinish}
|
||||
|
|
|
|||
Loading…
Reference in New Issue