From 755a1cbad25e3a189b4e0643b489521316898196 Mon Sep 17 00:00:00 2001 From: xjs Date: Fri, 17 Apr 2026 13:04:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=9A=84=E5=88=86=E6=95=B0=E7=BA=BF--?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .nvmdrc | 1 + src/pages-sub/home/wishesList/components/DataTable.vue | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .nvmdrc diff --git a/.nvmdrc b/.nvmdrc new file mode 100644 index 0000000..5e99ced --- /dev/null +++ b/.nvmdrc @@ -0,0 +1 @@ +18.20.8 \ No newline at end of file diff --git a/src/pages-sub/home/wishesList/components/DataTable.vue b/src/pages-sub/home/wishesList/components/DataTable.vue index dd9cb6c..12f877b 100644 --- a/src/pages-sub/home/wishesList/components/DataTable.vue +++ b/src/pages-sub/home/wishesList/components/DataTable.vue @@ -136,7 +136,7 @@ const columns = ref([ const rankDiff = (index: number, item) => { return index === props.data.length - 1 ? item['rankLine'] - : item['rankLine'] !== '--' + : item['rankLine'] != '--' && props.data[index + 1]['rankLine'] != '--' ? item['rankLine'] - props.data[index + 1]['rankLine'] : '--' } @@ -148,9 +148,11 @@ const recompileData = computed(() => { props.lowscoreRank !== -1 ? props.lowscoreRank === 0 ? '--' - : item['rankLine'] - props.lowscoreRank + : item['rankLine'] != '--' + ? item['rankLine'] - props.lowscoreRank + : '--' : rankDiff(index, item) - item['lineDiff'] = item['score'] !== '--' ? item['score'] - props.score : 0 + item['lineDiff'] = item['score'] != '--' ? item['score'] - props.score : 0 return item }) return _data