this.$confirm方法内置promise方法不能去掉.catch(),没有.catch取消操作无法捕获,就会出现报错。
解决方法:
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}
this.$confirm方法内置promise方法不能去掉.catch(),没有.catch取消操作无法捕获,就会出现报错。
解决方法:
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}