this.$confirm() 确认框点击取消时报错:Uncaught (in promise) cancel
解决方法:没有加catch(),加上之后就不会报错了
this.$confirm('确定删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
axios.post("url").then(res => {
})
}).catch(() => {
});