From 94b74d72f641a27c466664ccfd880b9cf10d0a71 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 8 Aug 2026 21:56:44 +0800 Subject: [PATCH] fix(frontend): fallback empty offline page html in editor workspace preview --- frontend/app/(main)/responses/offline/edit/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/(main)/responses/offline/edit/page.tsx b/frontend/app/(main)/responses/offline/edit/page.tsx index 2a6d0673..08c51a5c 100644 --- a/frontend/app/(main)/responses/offline/edit/page.tsx +++ b/frontend/app/(main)/responses/offline/edit/page.tsx @@ -39,6 +39,7 @@ import { HtmlEditorWorkspace } from '@/components/common/html-editor-workspace'; import { OFFLINE_PAGE_TEMPLATES, DEFAULT_OFFLINE_PAGE_TEMPLATE_ID, + effectiveOfflinePageHTML, getOfflinePageTemplate, } from '@/lib/openflare/offline-page-templates'; import { OptionService } from '@/lib/services/openflare'; @@ -178,7 +179,7 @@ export default function OfflinePageEditPage() { h} + preview={effectiveOfflinePageHTML} footerHint={null} showPreviewLink={false} previewTitle='离线页实时预览'