mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-28 05:46:36 +08:00
fix(frontend): fallback empty offline page html in editor workspace preview
This commit is contained in:
@@ -39,6 +39,7 @@ import { HtmlEditorWorkspace } from '@/components/common/html-editor-workspace';
|
|||||||
import {
|
import {
|
||||||
OFFLINE_PAGE_TEMPLATES,
|
OFFLINE_PAGE_TEMPLATES,
|
||||||
DEFAULT_OFFLINE_PAGE_TEMPLATE_ID,
|
DEFAULT_OFFLINE_PAGE_TEMPLATE_ID,
|
||||||
|
effectiveOfflinePageHTML,
|
||||||
getOfflinePageTemplate,
|
getOfflinePageTemplate,
|
||||||
} from '@/lib/openflare/offline-page-templates';
|
} from '@/lib/openflare/offline-page-templates';
|
||||||
import { OptionService } from '@/lib/services/openflare';
|
import { OptionService } from '@/lib/services/openflare';
|
||||||
@@ -178,7 +179,7 @@ export default function OfflinePageEditPage() {
|
|||||||
<HtmlEditorWorkspace
|
<HtmlEditorWorkspace
|
||||||
value={html}
|
value={html}
|
||||||
onChange={setHtml}
|
onChange={setHtml}
|
||||||
preview={(h) => h}
|
preview={effectiveOfflinePageHTML}
|
||||||
footerHint={null}
|
footerHint={null}
|
||||||
showPreviewLink={false}
|
showPreviewLink={false}
|
||||||
previewTitle='离线页实时预览'
|
previewTitle='离线页实时预览'
|
||||||
|
|||||||
Reference in New Issue
Block a user