From a565442c60b21d0079f3a7f5311d5697fb1f16e3 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 9 Mar 2026 15:06:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=87=91=E5=B8=81=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2):=20=E8=BD=AC=E8=B4=A6=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=8A=82=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/RechargeAgency/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/RechargeAgency/index.vue b/src/views/RechargeAgency/index.vue index 546b19e..b7d2663 100644 --- a/src/views/RechargeAgency/index.vue +++ b/src/views/RechargeAgency/index.vue @@ -327,6 +327,7 @@ import { getSelectedUser } from '@/utils/coinSellerStore.js' import { showError, showSuccess } from '@/utils/toast.js' import { usePageInitializationWithConfig } from '@/utils/pageConfig.js' import { handleAvatarImageError } from '@/utils/image/imageHandler.js' +import { useDebounce, useThrottle } from '@/utils/useDebounce' import { checkFreightDealer, @@ -564,7 +565,7 @@ const searchUser = () => { } // 立即充值 -const rechargeNow = async () => { +const rechargeNow = useThrottle(async () => { if (!canRecharge.value || isRecharging.value) return const amount = parseFloat(rechargeAmount.value) @@ -614,7 +615,7 @@ const rechargeNow = async () => { } finally { isRecharging.value = false } -} +}, 2000) const { userInfo } = usePageInitializationWithConfig('COIN_SELLER', { onDataLoaded: (data) => {