Commit 39e4558d by 李伟康

fix(DailyReport): 修复编辑报告逻辑判断条件

优化了保存报告后的成功判断条件,确保只有在返回数据包含id时才关闭编辑状态并显示通知弹窗,避免因空数据导致的异常行为。
1 parent 523a85c2
...@@ -319,7 +319,7 @@ export default { ...@@ -319,7 +319,7 @@ export default {
...orderObj ...orderObj
}) })
uni.hideLoading() uni.hideLoading()
if (data) { if (data && data.id) {
this.isEditReport = false this.isEditReport = false
this.$refs.reportNotice.open() this.$refs.reportNotice.open()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!