Jelajahi Sumber

日常开发

linxuxiang 5 bulan lalu
induk
melakukan
7323deff7e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/views/train/test.vue

+ 1 - 1
src/views/train/test.vue

@@ -572,7 +572,7 @@ const getAchievement = (data: any) => {
   //console.log("成绩", data);
   let type = parameter.value.project;
   let result =
-    data?.[dic.typeResultKey[type]];
+    data?.[dic.typeResultKey[type]] || 0;
     let count = null;
   if (["trijump", "solidball", "shotput", "longjump"].includes(type)) {
     count = (Math.round(result) / 100).toFixed(2);