Skip to content

Commit

Permalink
🐛 Fix: fix tcyun delete bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Apr 8, 2023
1 parent acf6609 commit 37dfe49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/apis/tcyun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 37dfe49

Please sign in to comment.