feat(web): support driver management

This commit is contained in:
t8y2 committed 2026-05-18 18:16:25 +08:00
1 parent af16ac219c
commit b01c17e709
13 files changed
+766 -49

No files matched your search

@@ -1,6 +1,5 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from "vue";
import { invoke } from "@tauri-apps/api/core";
import { uuid } from "@/lib/utils";
import { useI18n } from "vue-i18n";
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "@/components/ui/dialog";
@@ -736,10 +735,10 @@ async function loadJdbcDrivers() {
}
async function loadAgentDrivers() {
if (!isDesktop) return;
try {
agentDrivers.value = await invoke<AgentDriverInstallState[]>("list_installed_agents_local");
invoke<AgentDriverInstallState[]>("list_installed_agents")
agentDrivers.value = await api.listInstalledAgentsLocal();
api
.listInstalledAgents()
.then((drivers) => {
agentDrivers.value = drivers;
})