mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 06:38:13 -05:00
🐛 Fix: fix tcyun delete bug
This commit is contained in:
parent
acf660946e
commit
37dfe49109
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user