From 8ced48be4cda74782f824fc98dc8f79eeba5d36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Wed, 4 Mar 2026 13:39:42 +0800 Subject: [PATCH] =?UTF-8?q?style:=20cargo=20fmt=20=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=20pairing.rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/commands/pairing.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/commands/pairing.rs b/src-tauri/src/commands/pairing.rs index a2377dd..4fdd17c 100644 --- a/src-tauri/src/commands/pairing.rs +++ b/src-tauri/src/commands/pairing.rs @@ -109,7 +109,11 @@ fn patch_gateway_origins() { }; // Tauri v2: macOS/Linux 用 tauri://localhost,Windows 用 https://tauri.localhost - let origins = serde_json::json!(["tauri://localhost", "https://tauri.localhost", "http://localhost"]); + let origins = serde_json::json!([ + "tauri://localhost", + "https://tauri.localhost", + "http://localhost" + ]); if let Some(obj) = config.as_object_mut() { let gateway = obj