🐛 Fix: fix tcyun delete bug

This commit is contained in:
萌萌哒赫萝 2023-04-08 12:26:41 +08:00
parent acf660946e
commit 37dfe49109

View File

@ -12,7 +12,7 @@ export default class TcyunApi {
if (path === '/' || !path) {
key = `/${fileName}`
} else {
key = `/${path.replace(/^\//, '').replace(/\/$/, '')}${fileName}`
key = `/${path.replace(/^\//, '').replace(/\/$/, '')}/${fileName}`
}
const result = await cos.deleteObject({
Bucket: bucket,