element-ui 彈出確認提示框
https://www.jianshu.com/p/ff273dc81b68
圖解:
代碼:
this.$confirm('此操作將任務狀態改為刪除狀態, 是否繼續?', '提示', {
confirmButtonText: '確定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
//點擊確定的操作(調用接口)
}).catch(() => {
//幾點取消的提示
});
看效果: