Commit 0267f8c4 by wusiyi

fix: 配货完成按钮,请求失败也刷新页面

parent e9a39958
......@@ -2923,11 +2923,11 @@ const handleDeliveryComplete = () => {
const res = await deliveryCompleteApi(params)
if (res.code !== 200) return
ElMessage.success('操作成功')
refreshCurrentView({ isRefreshTree: true })
} catch (e) {
console.error(e)
} finally {
loading.close()
refreshCurrentView({ isRefreshTree: true })
}
})
.catch(() => {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment