|
|
@@ -24,7 +24,7 @@ const props = defineProps({
|
|
|
})
|
|
|
|
|
|
const show = shallowRef(false)
|
|
|
-const hidden = shallowRef(false) // 是否隐藏对话框
|
|
|
+const pending = shallowRef(true) // 是否进行中状态
|
|
|
const showConfirmButton = shallowRef(true)
|
|
|
const message = shallowRef('')
|
|
|
const confirmButtonText = shallowRef('')
|
|
|
@@ -54,7 +54,6 @@ const onConfirm = () => {
|
|
|
show.value = false
|
|
|
plus.installApp(fileUrl.value)
|
|
|
} else if (confirmButtonText.value === '隐藏') {
|
|
|
- hidden.value = true
|
|
|
show.value = false
|
|
|
} else {
|
|
|
message.value = ''
|
|
|
@@ -67,7 +66,7 @@ const onConfirm = () => {
|
|
|
message.value = err
|
|
|
showConfirmButton.value = false
|
|
|
}).finally(() => {
|
|
|
- show.value = hidden.value
|
|
|
+ show.value = pending.value
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -77,7 +76,7 @@ const onCancel = () => {
|
|
|
plus.deleteFile(fileUrl.value)
|
|
|
}
|
|
|
ondownload.cancel()
|
|
|
- hidden.value = false
|
|
|
+ pending.value = false
|
|
|
show.value = false
|
|
|
}
|
|
|
|