mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-26 02:30:18 +08:00
✨ Feature: batch rename in gallery will not modify un-matched files
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user