Explorar el Código

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

任一存 hace 2 años
padre
commit
7cc742fcbf
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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>