feat(金币代理页面): 转账操作设置节流
This commit is contained in:
parent
4db9b6a7cf
commit
a565442c60
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user