diff --git a/src/pages/FontDetail.vue b/src/pages/FontDetail.vue index fd6040e..0102175 100644 --- a/src/pages/FontDetail.vue +++ b/src/pages/FontDetail.vue @@ -99,6 +99,13 @@ const bodyText = computed(() => meta.value?.config?.bodyText ?? ""); /** 字符预览行:来自 config.charsetPreview */ const charsetPreview = computed(() => meta.value?.config?.charsetPreview ?? ""); +/** 所有需要预览的文字合并,用于字体子集加载 */ +const allPreviewText = computed(() => { + if (!meta.value?.config) return ""; + const c = meta.value.config; + return [c.previewText ?? "", c.bodyTitle ?? "", c.bodyText ?? "", c.charsetPreview ?? ""].join(""); +}); + /** 使用方法示例代码(动态拼接 origin + fontName) */ const usageCode = computed(() => `