vue报错Uncaught (in promise) cancel解决办法
时间:2020-09-02 13:03:27
收藏:0
阅读:597
原因:this.$confirm方法内置promise方法,
.catch()不能省略(因为取消操作时,无法捕获)
解决: .then(res => {...}) .catch(()=>{});(then之后把catch加上)
原文:https://www.cnblogs.com/6531792-j/p/13600804.html
评论(0)