From 926c0f4983d18c37493bf21e7371ae79b66b1973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Fri, 16 Aug 2024 19:41:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=8A=BD?= =?UTF-8?q?=E6=95=B0=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/gachaRecord/gro-dataview.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 = "";