From 073abafdfd104b5e3ae1cc14fb0d6d28b900ba12 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Tue, 10 Mar 2026 01:50:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(remote):=20=E4=BF=AE=E5=A4=8D=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electron/main.ts b/electron/main.ts index 27bd173..af19402 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -262,7 +262,8 @@ ipcMain.handle('remote-download-file', async (_event, serverHost: string, port: throw new Error('No window found'); } - let url = `http://${serverHost}:${port}/api/files/${encodeURIComponent(fileName)}`; + const fullPath = remotePath ? `${remotePath}\\${fileName}` : fileName; + let url = `http://${serverHost}:${port}/api/files/${encodeURIComponent(fullPath)}`; if (password) { url += `?password=${encodeURIComponent(password)}`; }