diff --git a/web/src/views/Index/components/VersionCard.tsx b/web/src/views/Index/components/VersionCard.tsx
index b299ad29..702b6520 100644
--- a/web/src/views/Index/components/VersionCard.tsx
+++ b/web/src/views/Index/components/VersionCard.tsx
@@ -4,7 +4,7 @@
* @Author: yujiangping
* @Date: 2026-01-12 16:34:59
* @LastEditors: yujiangping
- * @LastEditTime: 2026-01-16 15:38:35
+ * @LastEditTime: 2026-01-23 19:07:36
*/
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -23,6 +23,13 @@ const GuideCard: React.FC = () => {
return currentLang === 'zh' ? versionInfo.introduction : (versionInfo.introduction_en || versionInfo.introduction);
};
+ // 解析换行符和HTML的方法
+ const parseContent = (text: string) => {
+ if (!text) return '';
+ // 将 \n 转换为
标签
+ return text.replace(/\\n/g, '
');
+ };
+
useEffect(() => {
const fetchVersion = async () => {
try {
@@ -58,13 +65,16 @@ const GuideCard: React.FC = () => {
{t('version.name')}: {introduction.codeName}
-
- {introduction.upgradePosition} -
+ {introduction.coreUpgrades?.map((item: string, index: number) => ( -- {index + 1}. {item} -
+ ))} >) : null; })()}