+ // 在历史记录头部插入
+ const now = new Date();
+ const mm = String(now.getMonth() + 1).padStart(2, '0');
+ const dd = String(now.getDate()).padStart(2, '0');
+ const hh = String(now.getHours()).padStart(2, '0');
+ const mi = String(now.getMinutes()).padStart(2, '0');
+ this.quota.recent_rewards.unshift({ target: this.targetUsername, amount: amt, created_at: mm + '-' + dd + ' ' + hh + ':' + mi });
+ if (this.quota.recent_rewards.length > 10) this.quota.recent_rewards.pop();
+ this.amount = '';
+ alert(data.message);
+ } else {
+ alert(data.message || '发放失败');
+ }
+ } catch { alert('网络异常,请稍后重试'); }
+ this.sending = false;
+ }
+}">
+
{{-- 标题栏 --}}
-