Files
FE_CPONE/test/vuex/one-fo-verification/api/vilage.js
2026-04-27 10:13:31 +07:00

21 lines
471 B
JavaScript

const URL = "/one-api/mockup/fo/verification/";
export async function search(search) {
try {
var resp = await axios.post(URL + 'vilage/search',{search:search});
if (resp.status != 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data;
return data;
} catch(e) {
return {
status: "ERR",
message: e.message
};
}
}