Browse Source

fix🐛 :修复磁盘占比值格式问题

wenjianzhang 4 years ago
parent
commit
8bd985adcf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/system/monitor.vue

+ 1 - 1
src/views/system/monitor.vue

@@ -42,7 +42,7 @@
               </div>
               <div class="monitor">
                 <div class="monitor-header">
-                  <el-progress :color="$store.state.settings.theme" type="circle" :percentage=" `${((info.disk.free / info.disk.total) * 100).toFixed(2)}` " />
+                  <el-progress :color="$store.state.settings.theme" type="circle" :percentage=" Number(( info.disk.free / info.disk.total * 100).toFixed(2))" />
                 </div>
                 <div class="monitor-footer">
                   <Cell label="总内存" :value="info.disk.total+'G'" border />