diff --git a/src/components/gachaRecord/gro-dataview.vue b/src/components/gachaRecord/gro-dataview.vue
index 5c067e41..8f775933 100644
--- a/src/components/gachaRecord/gro-dataview.vue
+++ b/src/components/gachaRecord/gro-dataview.vue
@@ -11,11 +11,11 @@
4☆已垫
- {{ reset4count }}
+ {{ reset4count - 1 }}
5☆已垫
- {{ reset5count }}
+ {{ reset5count - 1 }}
5☆平均
@@ -92,8 +92,8 @@ const startDate = ref(""); // 最早的时间
const endDate = ref(""); // 最晚的时间
const star5List = ref([]); // 5星物品数据
const star4List = ref([]); // 4星物品数据
-const reset5count = ref(0); // 5星垫抽数量
-const reset4count = ref(0); // 4星垫抽数量
+const reset5count = ref(1); // 5星垫抽数量
+const reset4count = ref(1); // 4星垫抽数量
const star3count = ref(0); // 3星物品数量
const star5avg = ref(""); // 5星平均抽数
const tab = ref("5"); // tab
@@ -108,7 +108,7 @@ function loadData(): void {
const tempData = props.dataVal;
// 按照 id 升序
tempData
- .sort((a, b) => Number(a.id) - Number(b.id))
+ .sort((a, b) => a.id.localeCompare(b.id))
.forEach((item) => {
// 处理时间
if (startDate.value === "" || item.time < startDate.value) startDate.value = item.time;
@@ -195,9 +195,9 @@ watch(
() => {
star5List.value = [];
star4List.value = [];
- reset5count.value = 0;
- reset4count.value = 0;
- star3count.value = 0;
+ reset5count.value = 1;
+ reset4count.value = 1;
+ star3count.value = 1;
startDate.value = "";
endDate.value = "";
star5avg.value = "";