Feature: picture upload support webdav now

This commit is contained in:
萌萌哒赫萝
2023-02-22 23:52:38 +08:00
parent 399f4e4cca
commit 1dacd3c663
6 changed files with 39 additions and 8 deletions

View File

@@ -425,7 +425,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', 'aws-s3']
const picBedsCanbeDeleted = ['smms', 'github', 'imgur', 'tcyun', 'aliyun', 'qiniu', 'upyun', 'aws-s3', 'webdavplist']
if (await getConfig('settings.deleteCloudFile')) {
if (item.type !== undefined && picBedsCanbeDeleted.includes(item.type)) {
setTimeout(() => {