From 20b585a5c9deb2bd5e8fdc1e90d2a745db8db049 Mon Sep 17 00:00:00 2001 From: DavidMorgan Date: Mon, 13 Apr 2026 13:58:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E6=95=B0=E7=BA=BF=E7=9A=84?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .nvmdrc | 2 +- src/components/sort-college/DataTable.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.nvmdrc b/.nvmdrc index 801a2a0..10900cd 100644 --- a/.nvmdrc +++ b/.nvmdrc @@ -1 +1 @@ -23.8.0 \ No newline at end of file +25.7.0 \ No newline at end of file diff --git a/src/components/sort-college/DataTable.vue b/src/components/sort-college/DataTable.vue index 16e8b8e..4d1873c 100644 --- a/src/components/sort-college/DataTable.vue +++ b/src/components/sort-college/DataTable.vue @@ -81,7 +81,7 @@ ]); const rankDiff = (index: number, item: any) => { - return index === props.data.length - 1 ? item["rankLine"] : item["rankLine"] - props.data[index + 1]["rankLine"]; + return index === props.data.length - 1 ? item["rankLine"] !== '--' ? item["rankLine"] - props.data[index + 1]["rankLine"] : '--' : '--'; }; const recompileData = computed(() => { @@ -93,7 +93,7 @@ ? '--' : item['rankLine'] - props.lowscoreRank : rankDiff(index, item) - item['lineDiff'] = item['score'] - props.score + item['lineDiff'] = item['score'] !== '--' ? item['score'] - props.score : '--' return item }) return _data;