fix wrong watching parameter

This commit is contained in:
MaysWind
2023-06-24 23:59:20 +08:00
parent f0bc86d42f
commit e3d1a476e2
+2 -2
View File
@@ -43,7 +43,7 @@ export default {
} }
}, },
watch: { watch: {
'show': function (newValue) { 'showState': function (newValue) {
this.$emit('update:show', newValue); this.$emit('update:show', newValue);
} }
}, },
@@ -67,7 +67,7 @@ export default {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.resolve = resolve; this.resolve = resolve;
this.reject = reject; this.reject = reject;
}) });
}, },
confirm() { confirm() {
if (this.resolve) { if (this.resolve) {