Commit ae1257388669b4782ec9b0dea2ed661db056d182
Merge branch 'd-ww' into 'main'
fix: create visual board not validate form See merge request huang/yun-teng-iot-front!335
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | ... | @@ -30,6 +30,7 @@ |
| 30 | 30 | const { createMessage } = useMessage(); |
| 31 | 31 | |
| 32 | 32 | const handleCreatePanel = async () => { |
| 33 | + await method.validate(); | |
| 33 | 34 | try { |
| 34 | 35 | const value = method.getFieldsValue() as AddDataBoardParams; |
| 35 | 36 | changeLoading(true); |
| ... | ... | @@ -45,6 +46,7 @@ |
| 45 | 46 | }; |
| 46 | 47 | |
| 47 | 48 | const handleEditPanel = async () => { |
| 49 | + await method.validate(); | |
| 48 | 50 | try { |
| 49 | 51 | const value = method.getFieldsValue() as UpdateDataBoardParams; |
| 50 | 52 | value.id = unref(recordId) as string; | ... | ... |