From 5a30338e837f390680e6529ab0f34840763a29d1 Mon Sep 17 00:00:00 2001 From: "xiaoqi.cxq" Date: Sat, 12 Nov 2022 10:02:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=9B=BF=E6=8D=A2bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/syncSvc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/syncSvc.js b/src/services/syncSvc.js index decf4ce6..e2fcadd8 100644 --- a/src/services/syncSvc.js +++ b/src/services/syncSvc.js @@ -844,7 +844,7 @@ const syncWorkspace = async (skipContents = false) => { const syncImg = async (absolutePath) => { const token = workspaceProvider.getToken(); - const path = absolutePath.substring(1, absolutePath.length).replace('%20', ' '); + const path = absolutePath.substring(1, absolutePath.length).replaceAll('%20', ' '); const { sha, content } = await workspaceProvider.downloadFile({ token, path, @@ -877,7 +877,7 @@ const uploadImg = async (imgIds, index = 0) => { file: { ...utils.deepCopy(item), type: 'img', - path: item.path.substring(1, item.path.length).replace('%20', ' '), + path: item.path.substring(1, item.path.length).replaceAll('%20', ' '), }, isImg: true, });