From f13c9a678add7cb9aa29dd291e90b69d82e2d2cd Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 14 Apr 2026 11:00:03 +0800 Subject: [PATCH] fix: HTML rendering cannot obtain geolocation --- ui/src/components/markdown/HtmlRander.vue | 1 + ui/src/components/markdown/IframeRender.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/src/components/markdown/HtmlRander.vue b/ui/src/components/markdown/HtmlRander.vue index 0a1751587b9..a2f9635c079 100644 --- a/ui/src/components/markdown/HtmlRander.vue +++ b/ui/src/components/markdown/HtmlRander.vue @@ -4,6 +4,7 @@ class="iframe" style="border: 0; width: 100%" :srcdoc="fSource" + allow="geolocation" sandbox="allow-scripts" /> diff --git a/ui/src/components/markdown/IframeRender.vue b/ui/src/components/markdown/IframeRender.vue index 7cbbb561795..73b2aaca08c 100644 --- a/ui/src/components/markdown/IframeRender.vue +++ b/ui/src/components/markdown/IframeRender.vue @@ -6,6 +6,7 @@ style="border: 0; width: 100%" class="iframe" :srcdoc="finalSource" + allow="geolocation" sandbox="allow-scripts" />