|
@@ -14,14 +14,18 @@ const Setting = () => {
|
|
|
},
|
|
|
{
|
|
|
manual: true,
|
|
|
- onSuccess: (result: API.GetSettingParams) => {
|
|
|
- form?.setFieldsValue({ name: result.name, backstageName: result.backstageName })
|
|
|
+ onSuccess: (result: API.SettingInfo) => {
|
|
|
+ // setState({ ...state, contentVlue: result })
|
|
|
+ // console.log(result, form.current)
|
|
|
+
|
|
|
+ form.setFieldsValue({ ...result })
|
|
|
}
|
|
|
}
|
|
|
)
|
|
|
|
|
|
useEffect(() => {
|
|
|
tryGetSetting()
|
|
|
+ // form.current?.setFieldsValue(...state.contentValue)
|
|
|
}, [])
|
|
|
|
|
|
return (
|