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