From 37dfe491096c9bff5caa28e6b1ad4a70e5e10df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E8=90=8C=E5=93=92=E8=B5=AB=E8=90=9D?= Date: Sat, 8 Apr 2023 12:26:41 +0800 Subject: [PATCH] :bug: Fix: fix tcyun delete bug --- src/renderer/apis/tcyun.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/apis/tcyun.ts b/src/renderer/apis/tcyun.ts index 32eb1502..7c6d1207 100644 --- a/src/renderer/apis/tcyun.ts +++ b/src/renderer/apis/tcyun.ts @@ -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,