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

13次阅读

共计 360 个字符,预计需要花费 1 分钟才能阅读完成。

后端不向前端返回数据然而都端须要继续执行而前端不处于 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('已勾销');
});

正文完
 0