diff --git a/src/pages/setting/AppUpdate.vue b/src/pages/setting/AppUpdate.vue index a9a9efc..f76cdaf 100644 --- a/src/pages/setting/AppUpdate.vue +++ b/src/pages/setting/AppUpdate.vue @@ -214,9 +214,6 @@ const updateHint = computed(() => { // ---------- 更新日志 ---------- -/** web 端只展示最近几个版本 */ -const WEB_NOTE_LIMIT = 3; - const noteList = ref([]); /** 有更新时展示区间日志,已是最新时展示最近几个版本 */ @@ -232,8 +229,7 @@ async function loadNotes(): Promise { platform: Capacitor.getPlatform(), channel: "stable" }); - const list = result?.notes ?? []; - noteList.value = updateSupported ? list : list.slice(0, WEB_NOTE_LIMIT); + noteList.value = result?.notes ?? []; } catch { // 日志不是关键路径,失败时安静降级,不弹错误 noteList.value = [];