0
点赞
收藏
分享

微信扫一扫

ACM - 搜索与图论 - 基础(搜索 + 拓扑 + 最小生成树 + 最短路 + 二分图 + 欧拉路 + 最大流 + 其它)

天行五煞 2023-05-11 阅读 48

vue报错Uncaught (in promise) cancel

原因:this.$confirm方法内置promise方法,
.catch()不能省略(因为取消操作时,无法捕获)

解决: .then(res => {…}) .catch(()=>{});(then之后把catch加上)

举报

相关推荐

0 条评论