feat: 查询超时错误页支持跳转修改超时时间
This commit is contained in:
6 files changed
+37
-3
No files matched your search
@@ -48,7 +48,7 @@ type DbOption = { value: string; label: string };
|
||||
type DbCategory = { key: string; title: string; options: DbOption[] };
|
||||
type DialogStep = "select" | "config";
|
||||
type DbPickerView = "icon" | "list";
|
||||
type ConfigTab = "connection" | "advanced" | "tls" | "transport";
|
||||
export type ConfigTab = "connection" | "advanced" | "tls" | "transport";
|
||||
type MqTokenSigningMode = "none" | "hs256" | "rs256";
|
||||
type NacosAuthKind = NacosAuthConfig["kind"];
|
||||
type DremioConnectionMode = "arrow-flight-sql" | "legacy";
|
||||
@@ -97,6 +97,7 @@ const isDesktop = isTauriRuntime();
|
||||
const props = defineProps<{
|
||||
editConfig?: ConnectionConfig;
|
||||
prefillConfig?: ConnectionDeepLinkDraft | null;
|
||||
initialTab?: ConfigTab;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -125,6 +126,10 @@ const visibleSchemaInitialSelection = ref<string[]>([]);
|
||||
const visibleSchemaError = ref("");
|
||||
let testRunId = 0;
|
||||
|
||||
function initialConfigTab(): ConfigTab {
|
||||
return props.initialTab ?? "connection";
|
||||
}
|
||||
|
||||
const defaultForm = (): ConnectionForm => ({
|
||||
name: "",
|
||||
db_type: "mysql",
|
||||
@@ -1165,7 +1170,7 @@ watch(
|
||||
jdbcManualClasspathOpen.value = config.db_type === "prestosql" || (config.jdbc_driver_paths || []).length > 0;
|
||||
customDriverName.value = isCustomCompatibleProfile() ? config.driver_label || "" : "";
|
||||
dialogStep.value = "config";
|
||||
configTab.value = "connection";
|
||||
configTab.value = initialConfigTab();
|
||||
} else {
|
||||
editingId.value = null;
|
||||
form.value = defaultForm();
|
||||
|
||||
Reference in new issue
Block a user