maxx0329 2 日 前
コミット
81e491db8a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/views/cockpit/ydjc.vue

+ 1 - 1
src/views/cockpit/ydjc.vue

@@ -231,7 +231,7 @@ export default {
       };
       QueryOne(param).then((res) => {
         this.sdata[this.value] = {
-          sh_mj: res.data.sh_mj.toFixed(2) || 0,
+          sh_mj: res.data.sh_mj?res.data.sh_mj.toFixed(2) : 0,
           sj_number: res.data.sj_number || 0,
         };
       });