捐款随机金额补丁,避免捐款0元

This commit is contained in:
minimaxagent1 2025-08-05 17:59:06 +08:00
parent 8537f196df
commit 71b8e8e79c

View File

@ -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);
},