Showing
1 changed file
with
9 additions
and
5 deletions
... | ... | @@ -292,11 +292,15 @@ |
292 | 292 | return createMessage.error('请填写属性'); |
293 | 293 | } |
294 | 294 | } |
295 | - await postAddConvertApi(isEdit.value ? noEditObj : allPostForm); | |
296 | - createMessage.success('数据流转编辑成功'); | |
297 | - emit('success'); | |
298 | - defineClearFunc(); | |
299 | - closeModal(); | |
295 | + const res = await postAddConvertApi(isEdit.value ? noEditObj : allPostForm); | |
296 | + if (res) { | |
297 | + closeModal(); | |
298 | + createMessage.success('数据流转编辑成功'); | |
299 | + setTimeout(() => { | |
300 | + emit('success'); | |
301 | + }, 500); | |
302 | + defineClearFunc(); | |
303 | + } | |
300 | 304 | } |
301 | 305 | } catch { |
302 | 306 | } finally { | ... | ... |