From 9d062abe693491f42328cebb5e2a20a2000a4754 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sun, 18 Jan 2026 16:52:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=AE=80=E5=8C=96=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E4=B8=8E=E7=94=9F=E4=BA=A7=E6=A8=A1=E5=BC=8F=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 简化开发与生产模式的日志输出,移除冗余提示信息。 --- src-tauri/src/sidecar.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/sidecar.rs b/src-tauri/src/sidecar.rs index 7c97570..2d740ee 100644 --- a/src-tauri/src/sidecar.rs +++ b/src-tauri/src/sidecar.rs @@ -54,7 +54,7 @@ pub fn spawn_sidecar(app_handle: tauri::AppHandle) { if is_dev { // 开发模式:直接创建窗口连接到 Vite 开发服务器 - println!("🔧 开发模式:连接到 Vite 开发服务器 (localhost:3000)"); + println!("🔧 开发模式"); match tauri::WebviewWindowBuilder::new( &app_handle, @@ -69,7 +69,6 @@ pub fn spawn_sidecar(app_handle: tauri::AppHandle) { Ok(_) => println!("✓ 开发窗口创建成功"), Err(e) => { eprintln!("✗ 窗口创建失败: {}", e); - eprintln!("提示: 请确保 Vite 开发服务器在 localhost:3000 运行"); } } @@ -78,7 +77,7 @@ pub fn spawn_sidecar(app_handle: tauri::AppHandle) { // 生产模式:启动 sidecar 二进制 tauri::async_runtime::spawn(async move { - println!("🚀 生产模式:启动 Sidecar App"); + println!("🚀 生产模式"); // 查找可用端口 let port = find_available_port(DEFAULT_PORT).await;