Showing
1 changed file
with
6 additions
and
2 deletions
| ... | ... | @@ -70,13 +70,17 @@ const handleOk = async () => { |
| 70 | 70 | resetFields() |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | +const handleCancel = () => { | |
| 74 | + clearValidate() | |
| 75 | + resetFields() | |
| 76 | +} | |
| 77 | + | |
| 73 | 78 | defineExpose({ open }) |
| 74 | 79 | </script> |
| 75 | 80 | |
| 76 | 81 | <template> |
| 77 | 82 | <Modal |
| 78 | - v-model:open="visible" title="属性下发" ok-text="确认" :width="400" cancel-text="取消" @cancel=" | |
| 79 | - clearValidate()" @ok="handleOk" | |
| 83 | + v-model:open="visible" title="属性下发" ok-text="确认" :width="400" cancel-text="取消" @cancel="handleCancel" @ok="handleOk" | |
| 80 | 84 | > |
| 81 | 85 | <!-- <section> |
| 82 | 86 | <FormItem label="操作密码" :label-col="{ span: 24 }"> | ... | ... |