From f2871a2153a3a2ddf5109591bb8905ae7bbd8aae Mon Sep 17 00:00:00 2001 From: Pine Date: Mon, 7 Sep 2026 23:30:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=B5=8F=E8=A7=88=E5=99=A8=E5=90=8E=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=20invoke/=E5=B8=B8=E9=87=8F=20impor?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/src/utils/openExternalLink.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/console/src/utils/openExternalLink.ts b/console/src/utils/openExternalLink.ts index 8ad876a..64b955c 100644 --- a/console/src/utils/openExternalLink.ts +++ b/console/src/utils/openExternalLink.ts @@ -4,7 +4,7 @@ * * 黑名单规则:命中黑名单的 URL 静默拦截(不允许打开,无任何提示)。 */ -import { invoke, isTauri } from "@tauri-apps/api/core"; +import { isTauri } from "@tauri-apps/api/core"; import { getPyWebViewApi } from "./pywebview"; import { isOsPath } from "./navigationMode"; import { useOsRoute } from "../os/osRouteStore"; @@ -20,7 +20,6 @@ const SUPPORTED_EXTERNAL_PROTOCOLS = new Set([ "mailto:", "tel:", ]); -const TAURI_OPEN_EXTERNAL_LINK_COMMAND = "open_external_link"; type ExternalLinkRuntime = "pywebview" | "tauri" | "browser"; function hasHttpUrlPrefix(url: string): boolean {