Showing
1 changed file
with
8 additions
and
3 deletions
| ... | ... | @@ -144,16 +144,21 @@ |
| 144 | 144 | .then((res) => { |
| 145 | 145 | closeDrawer(); //关闭侧框 |
| 146 | 146 | emit('success'); |
| 147 | + setTimeout(() => { | |
| 148 | + setDrawerProps({ confirmLoading: false }); | |
| 149 | + }, 300); | |
| 147 | 150 | }) |
| 148 | 151 | .catch((e) => { |
| 149 | 152 | const { createMessage } = useMessage(); |
| 150 | 153 | createMessage.error(`${e.message}`); |
| 154 | + }) | |
| 155 | + .finally(() => { | |
| 156 | + setTimeout(() => { | |
| 157 | + setDrawerProps({ confirmLoading: false }); | |
| 158 | + }, 300); | |
| 151 | 159 | }); |
| 152 | 160 | } catch (e) { |
| 153 | 161 | } finally { |
| 154 | - setTimeout(() => { | |
| 155 | - setDrawerProps({ confirmLoading: false }); | |
| 156 | - }, 300); | |
| 157 | 162 | } |
| 158 | 163 | } |
| 159 | 164 | ... | ... |