Przeglądaj źródła

积分记录里不显示0:双保险

任一存 2 lat temu
rodzic
commit
7cc742fcbf
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      game/src/views/ShopView.vue

+ 3 - 0
game/src/views/ShopView.vue

@@ -164,6 +164,9 @@ function onClickPrizeItem(prizeItem) {
 const recordList = ref([])
 getBonusPointRecord().then((res) => {
   recordList.value = res.reverse()
+  recordList.value = recordList.value.filter((item) => {
+    return item.score !== 0 && item.score !== '0' && item.score !== '+0' && item.score !== '-0'
+  })
 })
 
 </script>