首页 > 编程知识 正文

死亡细胞uncaught,The promise

时间:2023-05-05 02:36:05 阅读:36963 作者:4342

最近遇到了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 (审计数据异常) )。

);

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。