24 lines
482 B
JavaScript
24 lines
482 B
JavaScript
const URL = "/one-api/mockup/process/resultentry-v17/";
|
|
|
|
export async function calc_age(prm ) {
|
|
try {
|
|
var resp = await axios.post(URL + 'helper/calc_age', prm);
|
|
if (resp.status != 200) {
|
|
return {
|
|
status: "ERR",
|
|
message: resp.statusText
|
|
};
|
|
}
|
|
return {
|
|
status: "OK",
|
|
data : resp.data.data
|
|
};
|
|
} catch(e) {
|
|
return {
|
|
status: "ERR",
|
|
message: e.message
|
|
};
|
|
}
|
|
}
|
|
|