mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
zengjie2001
This commit is contained in:
parent
6c7b427e86
commit
e99d6d721c
14
utils/f.js
Normal file
14
utils/f.js
Normal 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();
|
Loading…
x
Reference in New Issue
Block a user