diff --git a/README.CN.md b/README.CN.md index 4114880..035da3e 100644 --- a/README.CN.md +++ b/README.CN.md @@ -31,6 +31,7 @@ https://xiaolin1995.github.io/vue-fortune-wheel/demo/ { - const count = Math.round(row.probability * this.decimalSpaces) + const count = this.useWeight ? (row.weight || 0) : Math.round(row.probability * this.decimalSpaces) const arr = (new Array(count)).fill(row.id) idArr.push(...arr) })