feat(金币代理页面): 转账操作设置节流

This commit is contained in:
hzj 2026-03-09 15:06:16 +08:00
parent 4db9b6a7cf
commit a565442c60

View File

@ -327,6 +327,7 @@ import { getSelectedUser } from '@/utils/coinSellerStore.js'
import { showError, showSuccess } from '@/utils/toast.js' import { showError, showSuccess } from '@/utils/toast.js'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js' import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { handleAvatarImageError } from '@/utils/image/imageHandler.js' import { handleAvatarImageError } from '@/utils/image/imageHandler.js'
import { useDebounce, useThrottle } from '@/utils/useDebounce'
import { import {
checkFreightDealer, checkFreightDealer,
@ -564,7 +565,7 @@ const searchUser = () => {
} }
// //
const rechargeNow = async () => { const rechargeNow = useThrottle(async () => {
if (!canRecharge.value || isRecharging.value) return if (!canRecharge.value || isRecharging.value) return
const amount = parseFloat(rechargeAmount.value) const amount = parseFloat(rechargeAmount.value)
@ -614,7 +615,7 @@ const rechargeNow = async () => {
} finally { } finally {
isRecharging.value = false isRecharging.value = false
} }
} }, 2000)
const { userInfo } = usePageInitializationWithConfig('COIN_SELLER', { const { userInfo } = usePageInitializationWithConfig('COIN_SELLER', {
onDataLoaded: (data) => { onDataLoaded: (data) => {