消息提示:
if (res.code == 200) {
this.$message({
message: res.msg,
type: 'success'
})}else{
this.$message({
message: res.msg,
type: 'warning'
})
}
type 取值 success(成功) / warning(警告) / info(消息) / error(错误)
气泡确认框:
this.$confirm('删除后不可恢复,确定删除吗', {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
}).catch(() => { });