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 && (