轴速率限制 axios的速率限制:设置每个间隔应立即执行多少个请求,其他间隔将自动延迟。 正在安装 yarn add axios-rate-limit 用法 import axios from 'axios' ; import rateLimit from 'axios-rate-limit' ; // sets max 2 requests per 1 second, other will be delayed // note maxRPS is a shorthand for perMilliseconds: 1000, and it takes precedence // if specified both with maxRequests and perMilliseconds const http = rateLimit ( axios . create ( ) , { max