Warning: [antd: Switch] `value` is not a valid prop, do you mean `checked`?

解决方案:

            <Form.Item label="更多设置" name="moreSetting" valuePropName="checked">
              <Switch onChange={handleMoreSetting} />
            </Form.Item>

参考链接:

https://chat.xutongbao.top/

 

posted @ 2023-10-22 13:48  徐同保  阅读(41)  评论(0编辑  收藏  举报  来源