for (const item of checkboxRecords) { try { //await 同步 const res = await postAction(this.url.sapCheck, item ); if (res.message != '成功') { nextCheck = false this.$message.error(res.message); } } catch (error) { this.$message.error(error); this.confirmLoading = false; // 处理错误情况 return; } }
js for循环中请求改为同步方法
最新推荐文章于 2025-04-16 21:19:38 发布