关于vue.js:前端不等待后端执行

后端不向前端返回数据然而都端须要继续执行而前端不处于loading过程

this.$confirm(
  '提醒',
 {
    title: '提醒',
 message: h('div', null, newDatas),
 showCancelButton: true,
 confirmButtonText: '跳过',
 cancelButtonText: '勾销',
 type: 'warning'
 }
).then(() => {
  this.$message('后盾解决中');
 uploadPiles(yesPile).then();
 //申请二
 uploadProgress().then((res) => {
    let data = res.data.errcode;
 console.log(data)
  });
}).catch(() => {
  this.$message('已勾销');
});

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理