wang_xy преди 2 години
родител
ревизия
8a3579b81e
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/views/datacenter.vue

+ 2 - 1
src/views/datacenter.vue

@@ -17,7 +17,8 @@
                      v-on:click="indentleftSetMarkers(item.key)">
                   <div class="iconfont icon icon-normal" :class="item.icon"></div>
                   <div class="icon-text">
-                    <h6>{{ item.count }}</h6>
+                    <h6 v-if=" item.count.length > 10">{{ item.count.substring(0,10) }}<br>{{item.count.substring(10)}}</h6>
+                    <h6 v-else>{{ item.count}}</h6>
                     <h5>{{ item.name }}</h5>
                   </div>
                 </div>