zengjie2001

This commit is contained in:
ZengJie 2022-11-23 18:58:31 +08:00
parent 6c7b427e86
commit e99d6d721c

14
utils/f.js Normal file
View File

@ -0,0 +1,14 @@
//import xx from f.js
class jFeatch {
async get(url) {
const r = await fetch(url);
return await r.json();
}
async post(url, params) {
const r = await fetch(url, { ...params, method: "POST" });
return await r.json();
}
}
export default new jFeatch();