diff --git a/frontend/electron/services/pythonService.ts b/frontend/electron/services/pythonService.ts index 0dd8991..e700959 100644 --- a/frontend/electron/services/pythonService.ts +++ b/frontend/electron/services/pythonService.ts @@ -507,7 +507,7 @@ export async function startBackend(appRoot: string): Promise<{ success: boolean; console.log('Backend output:', output) // 检查是否包含启动成功的标志 - if (output.includes('Uvicorn running') || output.includes('8000')) { + if (output.includes('Uvicorn running') || output.includes('36163')) { clearTimeout(timeout) resolve() } @@ -519,7 +519,7 @@ export async function startBackend(appRoot: string): Promise<{ success: boolean; console.error('Backend error:', output) // 保留原有日志 // ✅ 在 stderr 中也检查启动标志 - if (output.includes('Uvicorn running') || output.includes('8000')) { + if (output.includes('Uvicorn running') || output.includes('36163')) { clearTimeout(timeout) resolve() } diff --git a/frontend/src/components/initialization/BackendStep.vue b/frontend/src/components/initialization/BackendStep.vue index 86aaf07..514fbea 100644 --- a/frontend/src/components/initialization/BackendStep.vue +++ b/frontend/src/components/initialization/BackendStep.vue @@ -4,24 +4,66 @@

{{ backendExists ? '更新最新的后端代码' : '获取后端源代码' }}

-
-
-
-

{{ mirror.name }}

-
- 未测试 - 测试中... - 超时 - {{ mirror.speed }}ms + +
+
+

镜像源

+ 推荐使用 +
+
+
+
+
+

{{ mirror.name }}

+ 推荐 +
+
+ 未测试 + 测试中... + 超时 + {{ mirror.speed }}ms +
+
{{ mirror.description }}
+
{{ mirror.url }}
+
+
+
+ + +
+
+

官方源

+ 中国大陆连通性不佳 +
+
+
+
+
+

{{ mirror.name }}

+
+
+ 未测试 + 测试中... + 超时 + {{ mirror.speed }}ms +
+
+
{{ mirror.description }}
+
{{ mirror.url }}
-
{{ mirror.url }}
@@ -36,25 +78,31 @@