后端不向前端返回数据但是都端需要继续执行而前端不处于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('已取消');
});

棘丶
12 声望1 粉丝