Browse Source

修改cat管理页面除0错误

DESKTOP-NE65RNK\Citrus_limon 7 tháng trước cách đây
mục cha
commit
8cfb79a496
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/bot/cta/index.vue

+ 1 - 1
src/views/bot/cta/index.vue

@@ -44,7 +44,7 @@
           </template>
           <template v-slot:earningRate="{ row }">
             <span :class="{ 'primary-color': row.nowAmount - row.startAmount > 0, 'danger-color': row.nowAmount - row.startAmount < 0 }">
-              {{ (((row.nowAmount - row.startAmount) / row.startAmount) * 100).toFixed(2) || 0 }}%
+              {{ (((row.nowAmount - row.startAmount) / row.startAmount || 1) * 100).toFixed(2) || 0 }}%
             </span>
           </template>
           <template v-slot:configs="{ row }">