统计-占比-百分比-处理分母可能为0

This commit is contained in:
khalil
2025-02-26 17:10:24 +08:00
parent e8836d1223
commit 2547caeac8

View File

@@ -188,7 +188,10 @@
v-if="detailsIsShow"
>
<template v-slot="scope">
{{ formatPercentage(scope.row.guildGoldFlow / scope.row.lastGuildGoldFlow) }}%
{{
scope.row.lastGuildGoldFlow === 0 ? '--'
: formatPercentage(scope.row.guildGoldFlow / scope.row.lastGuildGoldFlow) + '%'
}}
</template>
</el-table-column>
</el-table>