feat: plugin request 添加版本导出 (#208)

This commit is contained in:
qlin 2023-08-25 11:21:34 +08:00 committed by GitHub
parent 080218c183
commit 15a2b99df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,8 @@ export const request = async (url, data, options = {}) => {
return response.data;
};
request.version = '4.0.0';
function isPromiseLike(obj) {
return !!obj && typeof obj === 'object' && typeof obj.then === 'function';
}