Browse Source

解决报错

maxx0329 2 days ago
parent
commit
81e491db8a
1 changed files with 1 additions and 1 deletions
  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,
         };
       });