[feat][V]:新增询问框带reject工具函数

master
Romesum 5 years ago
parent 96ee2f5b57
commit c60fc16cdc

@ -10,6 +10,19 @@ export async function showDialog(content,that){
}).catch(() => {}); }).catch(() => {});
}) })
} }
//询问框带reject
export async function showDialogWithReject(content,that){
return new Promise((resolve, reject) => {
that.$confirm(content, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
resolve()
}).catch(() => {reject()});
})
}
// 显示操作成功 // 显示操作成功
export function showSuccess(content,that) { export function showSuccess(content,that) {
that.$message({ that.$message({

Loading…
Cancel
Save