import { Ajax } from '@dc/common-tool'
const instance = new Ajax()
const createdApi = instance.createAjax('request/url', 'POST')
createdApi({ x: 1 }, { headers: { token: 'xxx' } }).then((message) => console.log(message))
hq229075284 / common-tool Goto Github PK
View Code? Open in Web Editor NEW常用功能和工具的封装