chore(system): unlimit update note
This commit is contained in:
@@ -214,9 +214,6 @@ const updateHint = computed<string>(() => {
|
||||
|
||||
// ---------- 更新日志 ----------
|
||||
|
||||
/** web 端只展示最近几个版本 */
|
||||
const WEB_NOTE_LIMIT = 3;
|
||||
|
||||
const noteList = ref<AppUpdateNote[]>([]);
|
||||
|
||||
/** 有更新时展示区间日志,已是最新时展示最近几个版本 */
|
||||
@@ -232,8 +229,7 @@ async function loadNotes(): Promise<void> {
|
||||
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 = [];
|
||||
|
||||
Reference in New Issue
Block a user