Skip to content

Commit 1d80bcb

Browse files
committed
fix: both title parallel fix
1 parent 84bdaad commit 1d80bcb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,23 @@ export default function vueformPluginToggleConfirm() {
6262
})
6363

6464
const modalContent = computed(() => {
65-
if (component.value.value && confirmOnText.value && !confirmText.value) {
65+
if (!component.value.value && confirmOnText.value && !confirmText.value) {
6666
return confirmOnText.value
6767
}
68-
if (!component.value.value && confirmOffText.value && !confirmText.value) {
68+
69+
if (component.value.value && confirmOffText.value && !confirmText.value) {
6970
return confirmOffText.value
7071
}
7172

7273
return confirmText.value
7374
})
7475

7576
const modalTitle = computed(() => {
76-
if (component.value.value && confirmOnTitle.value && !confirmTitle.value) {
77+
if (!component.value.value && confirmOnTitle.value && !confirmTitle.value) {
7778
return confirmOnTitle.value
7879
}
79-
if (!component.value.value && confirmOffTitle.value && !confirmTitle.value) {
80+
81+
if (component.value.value && confirmOffTitle.value && !confirmTitle.value) {
8082
return confirmOffTitle.value
8183
}
8284

0 commit comments

Comments
 (0)