v1.6.0 #13
@@ -214,9 +214,6 @@ const updateHint = computed<string>(() => {
|
|||||||
|
|
||||||
// ---------- 更新日志 ----------
|
// ---------- 更新日志 ----------
|
||||||
|
|
||||||
/** web 端只展示最近几个版本 */
|
|
||||||
const WEB_NOTE_LIMIT = 3;
|
|
||||||
|
|
||||||
const noteList = ref<AppUpdateNote[]>([]);
|
const noteList = ref<AppUpdateNote[]>([]);
|
||||||
|
|
||||||
/** 有更新时展示区间日志,已是最新时展示最近几个版本 */
|
/** 有更新时展示区间日志,已是最新时展示最近几个版本 */
|
||||||
@@ -232,8 +229,7 @@ async function loadNotes(): Promise<void> {
|
|||||||
platform: Capacitor.getPlatform(),
|
platform: Capacitor.getPlatform(),
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
});
|
});
|
||||||
const list = result?.notes ?? [];
|
noteList.value = result?.notes ?? [];
|
||||||
noteList.value = updateSupported ? list : list.slice(0, WEB_NOTE_LIMIT);
|
|
||||||
} catch {
|
} catch {
|
||||||
// 日志不是关键路径,失败时安静降级,不弹错误
|
// 日志不是关键路径,失败时安静降级,不弹错误
|
||||||
noteList.value = [];
|
noteList.value = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user