From 9f6c86dbbc5ad56ac319a781decfa682350e25a2 Mon Sep 17 00:00:00 2001 From: AoXuan Date: Fri, 29 Aug 2025 00:58:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(initialization):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/electron/services/pythonService.ts | 2 +- .../components/initialization/ManualMode.vue | 45 ++++++++++--------- frontend/src/config/mirrors.ts | 12 ----- 3 files changed, 25 insertions(+), 34 deletions(-) diff --git a/frontend/electron/services/pythonService.ts b/frontend/electron/services/pythonService.ts index a8be553..0dd8991 100644 --- a/frontend/electron/services/pythonService.ts +++ b/frontend/electron/services/pythonService.ts @@ -213,7 +213,7 @@ export async function downloadPython( // 5MB fs.unlinkSync(zipPath) // 删除无效文件 throw new Error( - `Python下载文件大小异常: ${stats.size} bytes (${(stats.size / 1024).toFixed(2)} KB),可能是镜像站返回的错误页面或无效文件。请选择一个其他可用镜像源进行下载!` + `Python下载文件大小异常: ${stats.size} bytes (${(stats.size / 1024).toFixed(2)} KB)。可能是对应镜像站不可用。请选择任意一个其他镜像源进行下载!` ) } diff --git a/frontend/src/components/initialization/ManualMode.vue b/frontend/src/components/initialization/ManualMode.vue index 09e5956..f0295e0 100644 --- a/frontend/src/components/initialization/ManualMode.vue +++ b/frontend/src/components/initialization/ManualMode.vue @@ -1,22 +1,24 @@