Uncaught (in promise) cancel Promise.then (async)
vue element项目中,提示框点击取消报错:Uncaught (in promise) cancel Promise.then (async)解决方案: 加.catch(() => {})this.$confirm(this.$t('message.delete'), this.$t('message.warning'), {confirmButtonTex...
·
vue element项目中,提示框点击取消报错:Uncaught (in promise) cancel Promise.then (async)
解决方案: 加.catch(() => {})
this.$confirm(this.$t('message.delete'), this.$t('message.warning'), {
confirmButtonText: this.$t('message.confirm'),
cancelButtonText: this.$t('message.cancel'),
type: 'warning',
center: true
}).then(() => {
deleteRole(id).then(() => {
this.$message({
type: 'success',
message: 'Success!'
})
})
this.getRoleList()
}).catch(() => {})
更多推荐
已为社区贡献10条内容
所有评论(0)