提交 8941f0c4 编写于 作者: H hjdhnx

alist.min.js http函数封装

上级 01fb72dc
......@@ -89,8 +89,6 @@ const http = function (url, options = {}) {
if(!keys.includes('user-agent')){
options.headers['User-Agent'] = UA;
}
'Mozilla/5.0';
try {
const res = req(url, options);
res.json = () => res&&res.content ? JSON.parse(res.content) : null;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册