Flatten nested repos
This commit is contained in:
20
test/vuex/cpone-sample-electromedis/api/order_info.js
Normal file
20
test/vuex/cpone-sample-electromedis/api/order_info.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const URL = "/one-api/mockup/samplingradiodiagnostic-cpone/";
|
||||
|
||||
export async function search(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + "order/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,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user