原因:this.$confirm方法內置promise方法,
.catch()不能省略(因為取消操作時,無法捕獲)
解決: .then(res => {...}) .catch(()=>{});(then之后把catch加上)
原因:this.$confirm方法內置promise方法,
.catch()不能省略(因為取消操作時,無法捕獲)
解決: .then(res => {...}) .catch(()=>{});(then之后把catch加上)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。