Feature: album remote deletion now Support picgo-plugin-s3

This commit is contained in:
萌萌哒赫萝
2023-02-17 13:27:25 +08:00
parent 681da4af47
commit 21e870deaf
5 changed files with 48 additions and 7 deletions

View File

@@ -424,7 +424,7 @@ function remove (item: ImgInfo) {
}).then(async () => {
const file = await $$db.getById(item.id!)
await $$db.removeById(item.id!)
const picBedsCanbeDeleted = ['smms', 'github', 'imgur', 'tcyun', 'aliyun', 'qiniu', 'upyun']
const picBedsCanbeDeleted = ['smms', 'github', 'imgur', 'tcyun', 'aliyun', 'qiniu', 'upyun', 'aws-s3']
if (await getConfig('settings.deleteCloudFile')) {
if (item.type !== undefined && picBedsCanbeDeleted.includes(item.type)) {
setTimeout(() => {