Flatten nested repos
This commit is contained in:
23
test/vuex/cpone-process-resultvalidation/api/helper.js
Normal file
23
test/vuex/cpone-process-resultvalidation/api/helper.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v20/";
|
||||
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user