Showing
1 changed file
with
1 additions
and
2 deletions
... | ... | @@ -67,9 +67,9 @@ |
67 | 67 | |
68 | 68 | //提交按钮 |
69 | 69 | async function handleSubmit() { |
70 | + setDrawerProps({ confirmLoading: true }); | |
70 | 71 | try { |
71 | 72 | const values = await validate(); |
72 | - setDrawerProps({ confirmLoading: true }); | |
73 | 73 | if (isUpdate.value) { |
74 | 74 | Reflect.set(values, 'id', organizationId); |
75 | 75 | } |
... | ... | @@ -82,7 +82,6 @@ |
82 | 82 | emit('success'); |
83 | 83 | } catch { |
84 | 84 | } finally { |
85 | - setDrawerProps({ confirmLoading: false }); | |
86 | 85 | } |
87 | 86 | } |
88 | 87 | ... | ... |