mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-01 06:39:45 +08:00
♻️ 排序&空数据处理
This commit is contained in:
@@ -201,7 +201,9 @@ async function loadMaterialList(uid: number): Promise<void> {
|
||||
tList.push({ type: info.type, number: material.count });
|
||||
}
|
||||
}
|
||||
materialList.value = mList;
|
||||
materialList.value = mList.sort(
|
||||
(a, b) => a.info.type.localeCompare(b.info.type) || b.info.id - a.info.id,
|
||||
);
|
||||
materialShow.value = mList;
|
||||
materialTypes.value = tList;
|
||||
curIdx.value = 0;
|
||||
|
||||
Reference in New Issue
Block a user