Showing
1 changed file
with
2 additions
and
0 deletions
| ... | ... | @@ -56,6 +56,7 @@ | 
| 56 | 56 | |
| 57 | 57 | const handleSuccess = async () => { | 
| 58 | 58 | await validate(); | 
| 59 | + setModalProps({ loading: true }); | |
| 59 | 60 | const record = getFieldsValue(); | 
| 60 | 61 | const { description, debugMode, name } = record; | 
| 61 | 62 | if (!isUpdate.value) { | 
| ... | ... | @@ -84,6 +85,7 @@ | 
| 84 | 85 | |
| 85 | 86 | handleClose(); | 
| 86 | 87 | emit('success'); | 
| 88 | + setModalProps({ loading: false }); | |
| 87 | 89 | }; | 
| 88 | 90 | </script> | 
| 89 | 91 | <style lang="less" scoped></style> | ... | ... |