From 043bd5dd8d40a98ad2d2d2254bdcee6034066ada Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Mon, 11 May 2026 01:41:17 +0800 Subject: [PATCH] fix: make GitHub link clickable in settings about page --- src/components/editor/EditorSettingsDialog.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/editor/EditorSettingsDialog.vue b/src/components/editor/EditorSettingsDialog.vue index d40a73491..78a35b487 100644 --- a/src/components/editor/EditorSettingsDialog.vue +++ b/src/components/editor/EditorSettingsDialog.vue @@ -102,6 +102,15 @@ function setAppLayout(value: "separated" | "classic") { const activeSettingsTab = ref("editor"); const isWeb = !isTauriRuntime(); + +function openExternalUrl(url: string) { + if (isTauriRuntime()) { + import("@tauri-apps/plugin-shell").then(({ open }) => open(url)); + } else { + window.open(url, "_blank", "noopener,noreferrer"); + } +} + const jdbcDrivers = ref([]); const isLoadingJdbcDrivers = ref(false); const jdbcPluginStatus = ref(null); @@ -713,7 +722,12 @@ watch( {{ t("settings.project") }}
{{ t("settings.openSource") }}
-
github.com/t8y2/dbx
+
+ github.com/t8y2/dbx +