mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
feat: plugin request 添加版本导出 (#208)
This commit is contained in:
parent
080218c183
commit
15a2b99df2
@ -34,6 +34,8 @@ export const request = async (url, data, options = {}) => {
|
|||||||
return response.data;
|
return response.data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
request.version = '4.0.0';
|
||||||
|
|
||||||
function isPromiseLike(obj) {
|
function isPromiseLike(obj) {
|
||||||
return !!obj && typeof obj === 'object' && typeof obj.then === 'function';
|
return !!obj && typeof obj === 'object' && typeof obj.then === 'function';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user