Commit d39f90e3 by 李伟康

fix(CustomerOpportunities): 重置任务列表状态以确保数据刷新

- 在成功提交后将 loadComplete 设置为 false
- 清空 taskList 数组以避免重复数据
- 确保调用 getData 方法重新加载最新数据
- 防止因状态未重置导致的数据缓存问题
1 parent 99759fcd
......@@ -196,7 +196,11 @@ export default {
title: data ? '提交成功' : '提交失败',
icon: "none",
})
if (data) this.getData(this.options)
if (data) {
this.loadComplete = false
this.taskList = []
this.getData(this.options)
}
} catch (error) {
uni.hideLoading()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!