瀏覽代碼

修改cat管理页面除0错误

DESKTOP-NE65RNK\Citrus_limon 7 月之前
父節點
當前提交
8cfb79a496
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 }">