From e752a27a0ea5075f06f6328aad0955941cb73ba3 Mon Sep 17 00:00:00 2001 From: LloydAsp Date: Wed, 20 May 2026 22:24:45 +0800 Subject: [PATCH 1/3] fix: fix body_base64 of js_runtime --- src/pages/dashboard/js-runtime/[id].vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/pages/dashboard/js-runtime/[id].vue b/src/pages/dashboard/js-runtime/[id].vue index 0a1bb90..3b90bee 100644 --- a/src/pages/dashboard/js-runtime/[id].vue +++ b/src/pages/dashboard/js-runtime/[id].vue @@ -72,6 +72,7 @@ import { import { useThemeStore } from "@/stores/theme"; import { cn } from "@/lib/utils"; import MarkdownIt from "markdown-it"; +import { base64ToBytes } from "@/lib/base64"; definePage({ meta: { @@ -147,12 +148,18 @@ const parsedHttpResult = computed(() => { } // 2. Identify data source (prioritize binary) - let rawBody = - res.body_bytes !== undefined - ? res.body_bytes - : res.body !== undefined - ? res.body - : res.data; + let rawBody; + + if (res.body_base64) { + rawBody = base64ToBytes(res.body_base64); + } else { + rawBody = + res.body_bytes !== undefined + ? res.body_bytes + : res.body !== undefined + ? res.body + : res.data; + } // 3. Process Body based on content type const isImage = contentType.includes("image/"); From 96aaa5d0aed9b93fc4948a0981329705a56b8c16 Mon Sep 17 00:00:00 2001 From: LloydAsp Date: Wed, 20 May 2026 22:51:09 +0800 Subject: [PATCH 2/3] feat(config): add ignore_cert support for upstream of agent --- .../node/setting/NodeSettingTabUpstream.vue | 11 +++++++++++ src/components/node/setting/UpstreamDetailDialog.vue | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/src/components/node/setting/NodeSettingTabUpstream.vue b/src/components/node/setting/NodeSettingTabUpstream.vue index fdfcc8a..deb3442 100644 --- a/src/components/node/setting/NodeSettingTabUpstream.vue +++ b/src/components/node/setting/NodeSettingTabUpstream.vue @@ -324,6 +324,17 @@ const handleDelete = async (index: number) => { + +
+ + 忽略TLS错误 + +
+ {{ + upstream.ignore_cert ? "是" : "否" + }} +
+
+
+ + +