fix: modifying the prefix will clear all selected files

This commit is contained in:
马登山
2026-01-29 17:27:19 +08:00
parent 36159c6db1
commit d87ca7ea60
+13
View File
@@ -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
}