捐款随机金额补丁,避免捐款0元
This commit is contained in:
parent
8537f196df
commit
71b8e8e79c
|
|
@ -99,7 +99,7 @@ export default {
|
|||
|
||||
// 切换随机金额选项
|
||||
toggleRandomAmount() {
|
||||
const randomAmount = Math.floor(Math.random() * 89); // 0-88的随机数
|
||||
const randomAmount = Math.floor(Math.random() * 88) + 1; // 生成1-88的随机整数
|
||||
this.localAmount = randomAmount.toString();
|
||||
console.log('生成随机金额:', this.localAmount);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user