element的二次确认提示框
2020-10-14 本文已影响0人
无尘粉笔
this.$confirm('是否继续此操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
alert('完成')
}
).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});