Files
FE_CPONE/test/vuex/cpone-sample-lab/api/req.js
2026-04-27 10:13:31 +07:00

20 lines
396 B
JavaScript

const URL = "/one-api/mockup/samplinglab-cpone/";
export async function req(prm) {
try {
var resp = await axios.post(URL + "req/info", prm);
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText,
};
}
let data = resp.data;
return data;
} catch (e) {
return {
status: "ERR",
message: e.message,
};
}
}