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