fix: 移除禁用系统浏览器后未使用的 invoke/常量 import

This commit is contained in:
Pine
2026-09-07 23:30:13 +08:00
parent f135a07ebe
commit f2871a2153
+1 -2
View File
@@ -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 {