Feature: batch rename in gallery will not modify un-matched files

This commit is contained in:
萌萌哒赫萝
2023-09-10 08:10:19 -07:00
parent 4a2d46585c
commit 079b0345ec
3 changed files with 363 additions and 331 deletions

View File

@@ -503,7 +503,7 @@ const batchRenameMatch = ref('')
const batchRenameReplace = ref('')
const mathcedCount = computed(() => {
const matchedFiles = [] as any[]
images.value.forEach((item: any) => {
filterList.value.forEach((item: any) => {
if (customStrMatch(item.imgUrl, batchRenameMatch.value)) {
matchedFiles.push(item)
}
@@ -939,7 +939,7 @@ function handleBatchRename () {
return
}
let matchedFiles = [] as any[]
images.value.forEach((item: any) => {
filterList.value.forEach((item: any) => {
if (customStrMatch(item.imgUrl, batchRenameMatch.value)) {
matchedFiles.push(item)
}