this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
//确定执行方法
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//取消执行方法
this.$message({
type: 'info',
message: '已取消删除'
});
});
vue2.0版本基于element UI 的异步确认
最新推荐文章于 2024-01-05 13:36:30 发布