element ui $message 和 $confirm 的使用

    this.$confirm('确定要删除吗?', '提示', {
              confirmButtonText: '确定',
              cancelButtonText: '取消',
              type: 'warning'
            }).then(() => {
                DeletePlayer(reqData).then(res=>{
            console.log(res)
           })
            }).catch(() => {
            });
        //  this.$message({
        //   message: '复制成功',
        //   type: 'success',
        //   center:true
        //  });
原文地址:https://www.cnblogs.com/lilamisu/p/14009673.html