mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-02 11:08: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) {
|
if (path === '/' || !path) {
|
||||||
key = `/${fileName}`
|
key = `/${fileName}`
|
||||||
} else {
|
} else {
|
||||||
key = `/${path.replace(/^\//, '').replace(/\/$/, '')}${fileName}`
|
key = `/${path.replace(/^\//, '').replace(/\/$/, '')}/${fileName}`
|
||||||
}
|
}
|
||||||
const result = await cos.deleteObject({
|
const result = await cos.deleteObject({
|
||||||
Bucket: bucket,
|
Bucket: bucket,
|
||||||
|
Loading…
Reference in New Issue
Block a user