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

This commit is contained in:
qlin 2023-08-25 11:21:34 +08:00 committed by GitHub
parent 19ee8b1253
commit 71b03f0342

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';
}