0
点赞
收藏
分享

微信扫一扫

element-ui 弹窗的this.$confirm框报错Uncaught (in promise) cancel

覃榜言 2022-03-22 阅读 53
前端vue

this.$confirm('是否确认导出所有' + this.titleName + '数据项?', '警告', {

confirmButtonText: '确定',

cancelButtonText: '取消',

type: 'warning'

}).catch(() => {})

要加.catch(() => {})

举报

相关推荐

0 条评论