This commit is contained in:
@@ -503,11 +503,10 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
async confirm(vm) {
|
||||
const res = await vm.$dialog.confirm({
|
||||
text: "Do you really want to exit?",
|
||||
confirm(vm) {
|
||||
return vm.$dialog.confirm({
|
||||
text: "GZFORM has a question: Do you really want to exit?",
|
||||
title: "Warning"
|
||||
});
|
||||
return res;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -431,21 +431,21 @@ export default {
|
||||
},
|
||||
duplicate() {
|
||||
console.log("About to dialog");
|
||||
|
||||
|
||||
this.$dialog.confirm({
|
||||
text: "Do you really want to exit?",
|
||||
title: "Warning"
|
||||
}).then(res => {
|
||||
console.log("The dialog result is:");
|
||||
console.log(res);
|
||||
});
|
||||
this.$gzform.confirm(this).then(res => {
|
||||
console.log("The dialog result is:");
|
||||
console.log(res);
|
||||
});
|
||||
|
||||
// this.$dialog.confirm({
|
||||
// text: "Do you really want to exit?",
|
||||
// title: "Warning"
|
||||
// }).then(res => {
|
||||
// console.log("The dialog result is:");
|
||||
// console.log(res);
|
||||
// });
|
||||
|
||||
//console.log(this.$gzform.confirm(this));
|
||||
|
||||
|
||||
|
||||
// this.$dialog.error({
|
||||
// text: "Cannot delete this item",
|
||||
// title: "Error"
|
||||
|
||||
Reference in New Issue
Block a user