Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

🧐[问题]renderFormItem 执行多次 #728

Open
cui-stack opened this issue Jan 31, 2021 · 0 comments
Open

🧐[问题]renderFormItem 执行多次 #728

cui-stack opened this issue Jan 31, 2021 · 0 comments

Comments

@cui-stack
Copy link

🧐 问题描述 [详细地描述问题,让大家都能理解]

使用protable,有表格,查询,新增,修改功能
有两个字段做级联比如省,城市两个字段,这两个字段通过useEffect初始化,并使用useState传入
当省改变时,预期效果是城市字段同步改动
目前存在的问题:
1,初始打开是(城市字段)的数据不能正常展示,在打开新增或者修改弹窗后,城市字段数据又能正常显示
2,renderFormItem的代码执行了5次,不知道原因

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant