From d87ca7ea60f3c913f0295abcf9b8d38622d84eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E7=99=BB=E5=B1=B1?= Date: Thu, 29 Jan 2026 17:27:19 +0800 Subject: [PATCH] fix: modifying the prefix will clear all selected files --- components/object/upload/picker.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/components/object/upload/picker.vue b/components/object/upload/picker.vue index c41b3af..3cd9db2 100644 --- a/components/object/upload/picker.vue +++ b/components/object/upload/picker.vue @@ -199,6 +199,19 @@ const isEditingSuffix = ref(false) const editableSuffix = ref('') const startEditSuffix = () => { + if (selectedItems.value.length > 0) { + dialog.warning({ + title: t('Warning'), + content: t('Modifying the prefix will clear all selected files. Do you want to continue?'), + positiveText: t('Confirm'), + negativeText: t('Cancel'), + onPositiveClick: () => { + clearAllFiles() + isEditingSuffix.value = true + }, + }) + return + } isEditingSuffix.value = true }