From 077c3285a2c983a50069b07d8bae8303361fcb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=92=E5=AF=92?= <2596194220@qq.com> Date: Sun, 24 May 2026 23:12:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=A7=BB=E5=85=A5=E7=89=88=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8D=A1=E7=89=87=E5=86=85=EF=BC=8C=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=20changelog=20=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/settings/update/page.tsx | 98 ++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 50 deletions(-) diff --git a/app/settings/update/page.tsx b/app/settings/update/page.tsx index 2629ea2..2c2ec29 100644 --- a/app/settings/update/page.tsx +++ b/app/settings/update/page.tsx @@ -160,6 +160,24 @@ export default function UpdatePage() { )} + + {/* 当前版本更新内容(无最新版本时展示) */} + {versionInfo?.current.changelog && !versionInfo?.latest?.changelog && ( +
+
+ + 当前版本更新内容 +
+ +
+ )} {/* 最新版本 */} @@ -182,17 +200,37 @@ export default function UpdatePage() { {versionInfo.latest ? ( -
- - {versionInfo.latest.version} - - {versionInfo.latest.release_date && ( - - - {versionInfo.latest.release_date} - + <> +
+ + {versionInfo.latest.version} + + {versionInfo.latest.release_date && ( + + + {versionInfo.latest.release_date} + + )} +
+ + {/* 最新版本更新内容 */} + {versionInfo.latest.changelog && ( +
+
+ + 更新内容 +
+ +
)} -
+ ) : versionInfo.message ? (
{versionInfo.message}
@@ -251,46 +289,6 @@ export default function UpdatePage() {
- {/* 变更日志 - 有更新时展示 */} - {versionInfo?.latest?.changelog && ( -
-
- - 更新内容 -
-
- -
-
- )} - - {/* 当前版本自己的 changelog(本地) */} - {versionInfo?.current.changelog && !versionInfo?.latest?.changelog && ( -
-
- - 当前版本更新内容 -
-
- -
-
- )} - {/* 错误提示 */} {errorMsg && (