@@ -173,12 +173,10 @@
}
await downloadDataFromAPI(productNo.value, () => {
-
+ // 回调函数中执行刷新,确保数据都保存好,进度条跑完
+ uni.reLaunch({ url: '/pages/work/record/InfoList' })
}).then((res) => {
- // 刷新整个页面
- if (res) {
- uni.reLaunch({ url: '/pages/work/record/InfoList' })
- }
+ // 移除这里的刷新逻辑,避免过早刷新
})