mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
17 lines
313 B
JavaScript
17 lines
313 B
JavaScript
|
|
import request from "@/request/index.js";
|
||
|
|
export function postReq(data, url) {
|
||
|
|
return request({
|
||
|
|
method: "post",
|
||
|
|
url,
|
||
|
|
data,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getReq(data, url) {
|
||
|
|
// const query = qs.stringify(data, { indices: false })
|
||
|
|
return request({
|
||
|
|
method: "get",
|
||
|
|
url: url + "?" + data,
|
||
|
|
});
|
||
|
|
}
|