Browse Source

fix: 消毒等级取整

master
guoapeng 1 week ago
parent
commit
bc36078723
  1. 2
      src/components/home/HomeFormula.vue
  2. 2
      src/views/home/chart.vue

2
src/components/home/HomeFormula.vue

@ -55,7 +55,7 @@ watchEffect(async () => {
<el-descriptions-item label="实时消毒等级"> <el-descriptions-item label="实时消毒等级">
<el-tag> <el-tag>
<span style="color: #31cb7a; font-size: 18px; margin: 0 5px">{{ <span style="color: #31cb7a; font-size: 18px; margin: 0 5px">{{
homeStore.disinfectionState.nlog?.toFixed(2)
parseInt(homeStore.disinfectionState.nlog?.toString())
}}</span>Log }}</span>Log
</el-tag> </el-tag>
</el-descriptions-item> </el-descriptions-item>

2
src/views/home/chart.vue

@ -202,7 +202,7 @@ const formatSeconds = (seconds: number) => {
<el-descriptions-item label="实时消毒等级"> <el-descriptions-item label="实时消毒等级">
<el-tag> <el-tag>
<span style="color: #31cb7a; font-size: 18px; margin: 0 5px">{{ <span style="color: #31cb7a; font-size: 18px; margin: 0 5px">{{
homeStore.disinfectionState.nlog?.toFixed(2)
parseInt(homeStore.disinfectionState.nlog?.toString())
}}</span>Log }}</span>Log
</el-tag> </el-tag>
</el-descriptions-item> </el-descriptions-item>

Loading…
Cancel
Save