学习笔记jira项目24用fetch抽象http请求
const apiUrl = process.env.REACT_APP_API_URL; interface Config extends RequestInit { token?: string; data?: object; } export const http = async ( endp...
学习笔记jira项目25用fetch抽象http请求
// TS 中的typeof,是在静态环境运行的 // return (...[endpoint, config]: Parameters<typeof http>) => export const useHttp = () => { const { user } = use...
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。