浏览代码

日常开发

linxuxiang 2 月之前
父节点
当前提交
7323deff7e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);