最近遇到了uncaught(inpromise )的问题,
我不知道前端也有异常的应对方法,从后端返回的是
thrownewbusinessexception (无待办事项实例、异常进程、数据回滚)
但是,由于没有处理,所以报告了错误
附解决方法 :
updatesellelecparticipantstatus (JSON.then ) ) ) response )={
控制台. log (response )
if(RES.code===10000 ) {
this.$message.error (审计数据异常) )。
}else{
this.$message.success ('通过审查) )。
}
}.catch((e )={
this.$message.error (审计数据异常) )。
);
捕获异常
catch () e )={
this.$message.error (审计数据异常) )。
);