mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-17 14:57:36 +08:00
🐛 Fix(custom): fix per-config rename setting bugs
ISSUES CLOSED: #510,#508
This commit is contained in:
@@ -1478,6 +1478,8 @@ const autoRenameComputed = computed({
|
||||
checkIfItemOnlyId(singleConfigInFile).then(async isOnlyId => {
|
||||
if (isOnlyId) {
|
||||
await removeItemFromBuildInList(singleConfigInFile.id)
|
||||
} else {
|
||||
await UpdateBuildInList(singleConfigInFile)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -1505,6 +1507,8 @@ const manualRenameComputed = computed({
|
||||
checkIfItemOnlyId(singleConfigInFile).then(async isOnlyId => {
|
||||
if (isOnlyId) {
|
||||
await removeItemFromBuildInList(singleConfigInFile.id)
|
||||
} else {
|
||||
await UpdateBuildInList(singleConfigInFile)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -1544,6 +1548,8 @@ watch(
|
||||
checkIfItemOnlyId(singleConfigInFile).then(async isOnlyId => {
|
||||
if (isOnlyId) {
|
||||
await removeItemFromBuildInList(singleConfigInFile.id)
|
||||
} else {
|
||||
await UpdateBuildInList(singleConfigInFile)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user